[Android] Inverted logic

Edward Wang git at videolan.org
Sat Jun 23 22:09:27 CEST 2012


android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sat Jun 23 16:09:19 2012 -0400| [feb52cc2ee28b2a228851728347e8d6865949db0] | committer: Edward Wang

Inverted logic

> http://git.videolan.org/gitweb.cgi/android.git/?a=commit;h=feb52cc2ee28b2a228851728347e8d6865949db0
---

 vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java |    2 +-
 1 file changed, 1 insertion(+), 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 38ae3be..fa46c7f 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/DirectoryAdapter.java
@@ -151,7 +151,7 @@ public class DirectoryAdapter extends BaseAdapter {
                 if(files[i].isFile())
                     nss.setIsFile();
 
-                if(nss.isFile() && LibVLC.getExistingInstance().nativeCountDirectoryContents(MRL + "/" + nss.name) < 6) {
+                if(!nss.isFile() && LibVLC.getExistingInstance().nativeCountDirectoryContents(MRL + "/" + nss.name) < 6) {
                     String mCurrentDir_old = mCurrentDir;
                     mCurrentDir = MRL;
                     this.populateNode(nss, MRL + "/" + nss.name);



More information about the Android mailing list