diff options
| author | 2018-03-13 10:06:21 -0700 | |
|---|---|---|
| committer | 2018-03-13 10:06:21 -0700 | |
| commit | b3b73f2f842d659f2d4dcf9cbd84fb8fa1e07aaa (patch) | |
| tree | 5cf1ede2de014aaf9a94878bf6dfbdfce9c42258 | |
| parent | 5dbde05f06a1fc5273efb6a38e3f65419a30ea23 (diff) | |
Allow for activities to resumed if keyguard is occluded.
A previous changelist enforced that activities would not be resumed
if the keyguard is locked. However, this prevents activities that
show above the keyguard from resuming.
This changelist adjusts this check to account for occlusion.
Fixes: 74585178
Test: Lock screen, fingerprint unlock, verify activity is resumed.
Test: Set alarm, lock screen, verify alarm shows above lock screen
resumed.
Change-Id: I9d26d6b667bb1679c373f36188a610a66d2f5b2d
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityStackSupervisor.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityStackSupervisor.java b/services/core/java/com/android/server/am/ActivityStackSupervisor.java index 185897a93381..abd24e140c01 100644 --- a/services/core/java/com/android/server/am/ActivityStackSupervisor.java +++ b/services/core/java/com/android/server/am/ActivityStackSupervisor.java @@ -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 |