Loading packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading Loading
packages/ExternalStorageProvider/src/com/android/externalstorage/ExternalStorageProvider.java +5 −1 Original line number Original line Diff line number Diff line Loading @@ -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); Loading