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

Commit b2e66f32 authored by Jeff Sharkey's avatar Jeff Sharkey Committed by android-build-merger
Browse files

Merge "Only return internal path when not visible." into pi-dev am: 2254fe2e

am: 70c93a28

Change-Id: I4960cd422e2039fe4451aa750f1b7d8f3ffb04c7
parents f351a397 70c93a28
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {