[Android] DirectoryAdapter: don't try to play a folder
Edward Wang
git at videolan.org
Sat May 25 23:38:54 CEST 2013
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat May 25 14:10:34 2013 -0400| [9a771e0da9099a30dba463c56ca33ee4e777d1cc] | committer: Edward Wang
DirectoryAdapter: don't try to play a folder
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=9a771e0da9099a30dba463c56ca33ee4e777d1cc
---
vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
index d4cb75b..75312b8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -414,7 +414,8 @@ public class DirectoryAdapter extends BaseAdapter {
ArrayList<String> a = new ArrayList<String>();
// i = 1 to exclude ".." folder
for(int i = 1; i < mCurrentNode.children.size(); i++)
- a.add(getMediaLocation(i));
+ if(mCurrentNode.children.get(i).isFile)
+ a.add(getMediaLocation(i));
return a;
}
More information about the Android
mailing list