diff options
| author | 2018-03-29 22:16:32 +0000 | |
|---|---|---|
| committer | 2018-03-29 22:16:32 +0000 | |
| commit | 2254fe2e04fe2d06fd8ea43b2f8ca3b8ed56cec9 (patch) | |
| tree | e354b1dab400aaae00ad4dcfc5598bae46c5a7b9 | |
| parent | 8b08d54869e2da90168a6ab0bcff0f34617d3f5f (diff) | |
| parent | 18bbed586595cd6bb4c77d5edac03316bb3a5645 (diff) | |
Merge "Only return internal path when not visible." into pi-dev
| -rw-r--r-- | core/java/android/os/storage/VolumeInfo.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/os/storage/VolumeInfo.java b/core/java/android/os/storage/VolumeInfo.java index 5c99f6c87d7c..9e3e386eedb2 100644 --- a/core/java/android/os/storage/VolumeInfo.java +++ b/core/java/android/os/storage/VolumeInfo.java @@ -312,7 +312,7 @@ public class VolumeInfo implements Parcelable { * {@link android.Manifest.permission#WRITE_MEDIA_STORAGE}. */ public File getInternalPathForUser(int userId) { - if (type == TYPE_PUBLIC) { + if (type == TYPE_PUBLIC && !isVisible()) { // TODO: plumb through cleaner path from vold return new File(path.replace("/storage/", "/mnt/media_rw/")); } else { |