[Android] Don't check root directories by default
Geoffrey Métais
git at videolan.org
Fri Dec 16 15:42:59 CET 2016
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Fri Dec 16 15:17:53 2016 +0100| [92aadb1e800fd240cffcb38efc687f172b30d89e] | committer: Geoffrey Métais
Don't check root directories by default
> https://code.videolan.org/videolan/vlc-android/commit/92aadb1e800fd240cffcb38efc687f172b30d89e
---
.../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 34aa85b..fb85dc8 100644
--- a/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
+++ b/vlc-android/src/org/videolan/vlc/gui/browser/StorageBrowserAdapter.java
@@ -74,8 +74,7 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter {
boolean hasContextMenu = mCustomDirsLocation.contains(storagePath);
vh.binding.setItem(storage);
vh.binding.setHasContextMenu(hasContextMenu);
- vh.binding.setChecked(((StorageBrowserFragment) fragment).mScannedDirectory ||
- (isRoot && Util.isListEmpty(mMediaDirsLocation)) || mMediaDirsLocation.contains(storagePath));
+ vh.binding.setChecked(((StorageBrowserFragment) fragment).mScannedDirectory || mMediaDirsLocation.contains(storagePath));
vh.binding.setCheckEnabled(!((StorageBrowserFragment) fragment).mScannedDirectory);
if (hasContextMenu)
vh.setContextMenuListener();
More information about the Android
mailing list