Merge "Allow for activities to resumed if keyguard is occluded." into pi-dev

This commit is contained in:
TreeHugger Robot
2018-03-13 19:37:25 +00:00
committed by Android (Google) Code Review

View File

@@ -3375,7 +3375,8 @@ public class ActivityStackSupervisor extends ConfigurationContainer implements D
stack.goToSleepIfPossible(false /* shuttingDown */);
} else {
stack.awakeFromSleepingLocked();
if (isFocusedStack(stack) && !mKeyguardController.isKeyguardLocked()) {
if (isFocusedStack(stack)
&& !mKeyguardController.isKeyguardShowing(display.mDisplayId)) {
// If the keyguard is unlocked - resume immediately.
// It is possible that the display will not be awake at the time we
// process the keyguard going away, which can happen before the sleep token