Loading services/core/java/com/android/server/wm/ActivityStack.java +10 −5 Original line number Diff line number Diff line Loading @@ -2548,12 +2548,17 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai // If the current top activity may be able to occlude keyguard but the occluded state // has not been set, update visibility and check again if we should continue to resume. boolean nothingToResume = true; if (!mService.mShuttingDown && !mTopActivityOccludesKeyguard && next.canShowWhenLocked()) { if (!mService.mShuttingDown) { final boolean canShowWhenLocked = !mTopActivityOccludesKeyguard && next.canShowWhenLocked(); final boolean mayDismissKeyguard = mTopDismissingKeyguardActivity != next && next.hasDismissKeyguardWindows(); if (canShowWhenLocked || mayDismissKeyguard) { ensureActivitiesVisibleLocked(null /* starting */, 0 /* configChanges */, !PRESERVE_WINDOWS); nothingToResume = shouldSleepActivities(); } } if (nothingToResume) { // Make sure we have executed any pending transitions, since there // should be nothing left to do at this point. Loading Loading
services/core/java/com/android/server/wm/ActivityStack.java +10 −5 Original line number Diff line number Diff line Loading @@ -2548,12 +2548,17 @@ class ActivityStack<T extends StackWindowController> extends ConfigurationContai // If the current top activity may be able to occlude keyguard but the occluded state // has not been set, update visibility and check again if we should continue to resume. boolean nothingToResume = true; if (!mService.mShuttingDown && !mTopActivityOccludesKeyguard && next.canShowWhenLocked()) { if (!mService.mShuttingDown) { final boolean canShowWhenLocked = !mTopActivityOccludesKeyguard && next.canShowWhenLocked(); final boolean mayDismissKeyguard = mTopDismissingKeyguardActivity != next && next.hasDismissKeyguardWindows(); if (canShowWhenLocked || mayDismissKeyguard) { ensureActivitiesVisibleLocked(null /* starting */, 0 /* configChanges */, !PRESERVE_WINDOWS); nothingToResume = shouldSleepActivities(); } } if (nothingToResume) { // Make sure we have executed any pending transitions, since there // should be nothing left to do at this point. Loading