Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1882e151 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android Git Automerger
Browse files

am e7477002: am 0eaadbc2: am 5db4cc8f: Merge "Handle volumes without visible paths." into mnc-dev

* commit 'e7477002':
  Handle volumes without visible paths.
parents 7fa83d26 e7477002
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -162,7 +162,11 @@ public class ExternalStorageProvider extends DocumentsProvider {
                if (volume.getType() == VolumeInfo.TYPE_PUBLIC) {
                    root.flags |= Root.FLAG_HAS_SETTINGS;
                }
                if (volume.isVisibleForRead(userId)) {
                    root.visiblePath = volume.getPathForUser(userId);
                } else {
                    root.visiblePath = null;
                }
                root.path = volume.getInternalPathForUser(userId);
                root.docId = getDocIdForFile(root.path);