We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e3b0119 + 865ea7c commit 5db4cc8Copy full SHA for 5db4cc8
1 file changed
packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java
@@ -162,7 +162,11 @@ private void updateVolumesLocked() {
162
if (volume.getType() == VolumeInfo.TYPE_PUBLIC) {
163
root.flags |= Root.FLAG_HAS_SETTINGS;
164
}
165
- root.visiblePath = volume.getPathForUser(userId);
+ if (volume.isVisibleForRead(userId)) {
166
+ root.visiblePath = volume.getPathForUser(userId);
167
+ } else {
168
+ root.visiblePath = null;
169
+ }
170
root.path = volume.getInternalPathForUser(userId);
171
root.docId = getDocIdForFile(root.path);
172
0 commit comments