From 4bdeda5c910c727a60997a4d23cdc847ca662403 Mon Sep 17 00:00:00 2001 From: Michael Bestas Date: Tue, 6 Dec 2022 15:57:54 +0200 Subject: Revert "keyguard: Do not trigger a wake up when hiding lockscreen" Will need to be reimplemented if needed after qpr1 This reverts commit 46a1632fae5b61d4b744a5a760655938419b0605. Change-Id: I712097192a5cfa1e20b24c49f7ef7516c5109f62 --- .../src/com/android/systemui/keyguard/KeyguardViewMediator.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 5ca6cd28f4db..c814acc3ea23 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -2394,6 +2394,13 @@ public class KeyguardViewMediator extends CoreStartable implements Dumpable, private void handleHide() { Trace.beginSection("KeyguardViewMediator#handleHide"); + // It's possible that the device was unlocked in a dream state. It's time to wake up. + if (mAodShowing || mDreamOverlayShowing) { + PowerManager pm = mContext.getSystemService(PowerManager.class); + pm.wakeUp(SystemClock.uptimeMillis(), PowerManager.WAKE_REASON_GESTURE, + "com.android.systemui:BOUNCER_DOZING"); + } + synchronized (KeyguardViewMediator.this) { if (DEBUG) Log.d(TAG, "handleHide"); -- cgit v1.2.3