* commit 'e7477002683a83ce3022365fe6c327bbc31055cc': Handle volumes without visible paths.
This commit is contained in:
@@ -162,7 +162,11 @@ public class ExternalStorageProvider extends DocumentsProvider {
|
|||||||
if (volume.getType() == VolumeInfo.TYPE_PUBLIC) {
|
if (volume.getType() == VolumeInfo.TYPE_PUBLIC) {
|
||||||
root.flags |= Root.FLAG_HAS_SETTINGS;
|
root.flags |= Root.FLAG_HAS_SETTINGS;
|
||||||
}
|
}
|
||||||
root.visiblePath = volume.getPathForUser(userId);
|
if (volume.isVisibleForRead(userId)) {
|
||||||
|
root.visiblePath = volume.getPathForUser(userId);
|
||||||
|
} else {
|
||||||
|
root.visiblePath = null;
|
||||||
|
}
|
||||||
root.path = volume.getInternalPathForUser(userId);
|
root.path = volume.getInternalPathForUser(userId);
|
||||||
root.docId = getDocIdForFile(root.path);
|
root.docId = getDocIdForFile(root.path);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user