[Android] Allow to deselect internal storage
Geoffrey Métais
git at videolan.org
Tue May 12 17:22:57 CEST 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Tue May 12 17:22:33 2015 +0200| [009c18147cb52ef463959ac9bb7462bdc4bfcd78] | committer: Geoffrey Métais
Allow to deselect internal storage
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=009c18147cb52ef463959ac9bb7462bdc4bfcd78
---
.../src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
index ccfd8f0..9ef5fda 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
@@ -126,7 +126,7 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter {
} else
mDbManager.removeDir(path);
updateMediaDirs();
- if (isRoot && mMediaDirsLocation.isEmpty())
+ if (isRoot && mMediaDirsLocation.isEmpty() && getItemCount() > 1)
refreshFragment();
}
}).start();
@@ -148,7 +148,6 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter {
if (customDirPath.startsWith(path+"/"))
mDbManager.removeDir(customDirPath);
}
- refreshFragment();
updateMediaDirs();
}
}).start();
More information about the Android
mailing list