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 {
} 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();
......
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