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

Commit 5db4cc8f authored by Jeff Sharkey's avatar Jeff Sharkey Committed by Android (Google) Code Review
Browse files

Merge "Handle volumes without visible paths." into mnc-dev

parents e3b0119f 865ea7c8
Loading
Loading
Loading
Loading
+5 −1
Original line number Original line Diff line number Diff line
@@ -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;
                }
                }
                if (volume.isVisibleForRead(userId)) {
                    root.visiblePath = volume.getPathForUser(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);