Commit 009c1814 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Allow to deselect internal storage

parent 33a6e443
...@@ -126,7 +126,7 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter { ...@@ -126,7 +126,7 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter {
} else } else
mDbManager.removeDir(path); mDbManager.removeDir(path);
updateMediaDirs(); updateMediaDirs();
if (isRoot && mMediaDirsLocation.isEmpty()) if (isRoot && mMediaDirsLocation.isEmpty() && getItemCount() > 1)
refreshFragment(); refreshFragment();
} }
}).start(); }).start();
...@@ -148,7 +148,6 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter { ...@@ -148,7 +148,6 @@ public class StorageBrowserAdapter extends BaseBrowserAdapter {
if (customDirPath.startsWith(path+"/")) if (customDirPath.startsWith(path+"/"))
mDbManager.removeDir(customDirPath); mDbManager.removeDir(customDirPath);
} }
refreshFragment();
updateMediaDirs(); updateMediaDirs();
} }
}).start(); }).start();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment