From 435b0bcbb316c652e53baea8381b071ceda3bc98 Mon Sep 17 00:00:00 2001 From: Richard MacGregor Date: Wed, 15 Jan 2025 17:08:16 -0800 Subject: 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 --- .../java/com/android/role/controller/util/UserUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'PermissionController/role-controller/java') 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); -- cgit v1.2.3-59-g8ed1b