diff options
author | 2025-01-15 17:08:16 -0800 | |
---|---|---|
committer | 2025-01-16 15:36:52 -0800 | |
commit | 435b0bcbb316c652e53baea8381b071ceda3bc98 (patch) | |
tree | 80eaef6456ba586ccd3ae376917d53f0f13ab25c /PermissionController/role-controller/java | |
parent | e0eb30376840ce7a289408c79046049b261d1252 (diff) |
Fix which profiles show in default app list
Default app list should show all profiles when opening with profile
parent
Default app list should only show work profile when opening with work
profile
Default app list should only show private profile when opening with
private profile
Bug: 390247739
Flag: EXEMPT bugfix
Relnote: Fix shown profiles in default app list
Test: manual
Change-Id: Ib7a003e48a731d6c5b79b373bc35ec703a55c347
Diffstat (limited to 'PermissionController/role-controller/java')
-rw-r--r-- | PermissionController/role-controller/java/com/android/role/controller/util/UserUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/PermissionController/role-controller/java/com/android/role/controller/util/UserUtils.java b/PermissionController/role-controller/java/com/android/role/controller/util/UserUtils.java index f3cb7926a..598057b16 100644 --- a/PermissionController/role-controller/java/com/android/role/controller/util/UserUtils.java +++ b/PermissionController/role-controller/java/com/android/role/controller/util/UserUtils.java @@ -127,7 +127,7 @@ public final class UserUtils { /** Returns the parent of a given user. */ @Nullable - private static UserHandle getProfileParent(UserHandle user, @NonNull Context context) { + public static UserHandle getProfileParent(UserHandle user, @NonNull Context context) { Context userContext = getUserContext(context, user); UserManager userManager = userContext.getSystemService(UserManager.class); return userManager.getProfileParent(user); |