Skip to content
Snippets Groups Projects
Commit 92aadb1e authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Don't check root directories by default

parent de03b9ab
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment