Skip to content

Commit f325548

Browse files
committed
Fix ambient display
Due to a refactoring for touch, wake and unlock for fingerprint devices PhoneWindowManager now waits for Keyguard to draw its first frame in all cases, including when screen turns on for pulsing. However, since in this case the device is not awake, we need to check for screen on instead of awakeness when proceeding with the wake-up sequence. Without this change, screen on was blocked forever in the pulsing case. Bug: 22605235 Change-Id: Ib6089fd14b673e62347f2c9108d9a6783caa26b7
1 parent 2a49353 commit f325548

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/core/java/com/android/server/policy/PhoneWindowManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5527,7 +5527,7 @@ private boolean wakeUp(long wakeTime, boolean wakeInTheaterMode, String reason)
55275527

55285528
private void finishKeyguardDrawn() {
55295529
synchronized (mLock) {
5530-
if (!mAwake || mKeyguardDrawComplete) {
5530+
if (!mScreenOnEarly || mKeyguardDrawComplete) {
55315531
return; // We are not awake yet or we have already informed of this event.
55325532
}
55335533

0 commit comments

Comments
 (0)