Loading services/core/java/com/android/server/am/UserController.java +9 −4 Original line number Diff line number Diff line Loading @@ -2107,6 +2107,15 @@ class UserController implements Handler.Callback { t.traceEnd(); } if (foreground) { // Make sure the old user is no longer considering the display to be on. mInjector.reportGlobalUsageEvent(UsageEvents.Event.SCREEN_NON_INTERACTIVE); synchronized (mLock) { mCurrentUserId = userId; ActivityManager.invalidateGetCurrentUserIdCache(); } } UserState finalUss = uss; boolean finalNeedStart = needStart; final Runnable continueStartUserInternal = () -> continueStartUserInternal(userInfo, Loading @@ -2132,12 +2141,8 @@ class UserController implements Handler.Callback { t.traceBegin("updateConfigurationAndProfileIds"); if (foreground) { // Make sure the old user is no longer considering the display to be on. mInjector.reportGlobalUsageEvent(UsageEvents.Event.SCREEN_NON_INTERACTIVE); boolean userSwitchUiEnabled; synchronized (mLock) { mCurrentUserId = userId; ActivityManager.invalidateGetCurrentUserIdCache(); userSwitchUiEnabled = mUserSwitchUiEnabled; } mInjector.updateUserConfiguration(); Loading Loading
services/core/java/com/android/server/am/UserController.java +9 −4 Original line number Diff line number Diff line Loading @@ -2107,6 +2107,15 @@ class UserController implements Handler.Callback { t.traceEnd(); } if (foreground) { // Make sure the old user is no longer considering the display to be on. mInjector.reportGlobalUsageEvent(UsageEvents.Event.SCREEN_NON_INTERACTIVE); synchronized (mLock) { mCurrentUserId = userId; ActivityManager.invalidateGetCurrentUserIdCache(); } } UserState finalUss = uss; boolean finalNeedStart = needStart; final Runnable continueStartUserInternal = () -> continueStartUserInternal(userInfo, Loading @@ -2132,12 +2141,8 @@ class UserController implements Handler.Callback { t.traceBegin("updateConfigurationAndProfileIds"); if (foreground) { // Make sure the old user is no longer considering the display to be on. mInjector.reportGlobalUsageEvent(UsageEvents.Event.SCREEN_NON_INTERACTIVE); boolean userSwitchUiEnabled; synchronized (mLock) { mCurrentUserId = userId; ActivityManager.invalidateGetCurrentUserIdCache(); userSwitchUiEnabled = mUserSwitchUiEnabled; } mInjector.updateUserConfiguration(); Loading