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

Commit 7e13ef55 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

Merge "Merge "Fix bug in getStorageVolumesIncludingSharedProfiles" into tm-dev...

Merge "Merge "Fix bug in getStorageVolumesIncludingSharedProfiles" into tm-dev am: 7f24e585 am: 829992b6" into tm-d1-dev-plus-aosp am: 32cea411

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18164345



Change-Id: I8d78eadf38ff6cbfb82d72dd7bb1138d1b90c872
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents b94f86f6 32cea411
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3880,9 +3880,12 @@ class StorageManagerService extends IStorageManager.Stub
                    match = vol.isVisibleForWrite(userId)
                            || (includeSharedProfile && vol.isVisibleForWrite(userIdSharingMedia));
                } else {
                    // Return both read only and write only volumes. When includeSharedProfile is
                    // true, all the volumes of userIdSharingMedia should be returned when queried
                    // from the user it shares media with
                    match = vol.isVisibleForUser(userId)
                            || (!vol.isVisible() && includeInvisible && vol.getPath() != null)
                            || (includeSharedProfile && vol.isVisibleForRead(userIdSharingMedia));
                            || (includeSharedProfile && vol.isVisibleForUser(userIdSharingMedia));
                }
                if (!match) continue;