Loading packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +6 −1 Original line number Diff line number Diff line Loading @@ -1029,7 +1029,12 @@ public class SystemServicesProxy { * Returns the current user id. */ public int getCurrentUser() { return KeyguardUpdateMonitor.getCurrentUser(); if (mAm == null) return 0; // This must call through ActivityManager, as the SystemServicesProxy can be called in a // secondary user's SystemUI process, and KeyguardUpdateMonitor is only updated in the // primary user's SystemUI process return mAm.getCurrentUser(); } /** Loading packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ public class RecentsTaskLoadPlan { mCurrentQuietProfiles.clear(); if (currentUserId == UserHandle.USER_CURRENT) { currentUserId = KeyguardUpdateMonitor.getCurrentUser(); currentUserId = SystemServicesProxy.getInstance(mContext).getCurrentUser(); } UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); List<UserInfo> profiles = userManager.getProfiles(currentUserId); Loading Loading
packages/SystemUI/src/com/android/systemui/recents/misc/SystemServicesProxy.java +6 −1 Original line number Diff line number Diff line Loading @@ -1029,7 +1029,12 @@ public class SystemServicesProxy { * Returns the current user id. */ public int getCurrentUser() { return KeyguardUpdateMonitor.getCurrentUser(); if (mAm == null) return 0; // This must call through ActivityManager, as the SystemServicesProxy can be called in a // secondary user's SystemUI process, and KeyguardUpdateMonitor is only updated in the // primary user's SystemUI process return mAm.getCurrentUser(); } /** Loading
packages/SystemUI/src/com/android/systemui/recents/model/RecentsTaskLoadPlan.java +1 −1 Original line number Diff line number Diff line Loading @@ -87,7 +87,7 @@ public class RecentsTaskLoadPlan { mCurrentQuietProfiles.clear(); if (currentUserId == UserHandle.USER_CURRENT) { currentUserId = KeyguardUpdateMonitor.getCurrentUser(); currentUserId = SystemServicesProxy.getInstance(mContext).getCurrentUser(); } UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); List<UserInfo> profiles = userManager.getProfiles(currentUserId); Loading