* commit '0eaadbc2a9b7350ba839ad14590c34235e42e28b': 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) {
|
||||
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.docId = getDocIdForFile(root.path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user