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

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

Merge "Filter volumes to only those the caller can see."

parents ef033dad 3036089c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2915,7 +2915,7 @@ public final class MediaStore {
        final Set<String> volumeNames = new ArraySet<>();
        volumeNames.add(VOLUME_INTERNAL);
        for (VolumeInfo vi : sm.getVolumes()) {
            if (vi.isMountedReadable()) {
            if (vi.isVisibleForUser(UserHandle.myUserId()) && vi.isMountedReadable()) {
                if (vi.isPrimary()) {
                    volumeNames.add(VOLUME_EXTERNAL);
                } else {