diff options
author | Michael Bestas <mkbestas@lineageos.org> | 2022-12-06 15:57:54 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2023-04-20 00:08:54 +0800 |
commit | 4bdeda5c910c727a60997a4d23cdc847ca662403 (patch) | |
tree | 1bad72399221e97e13d6c513dc38c906fd7994dc | |
parent | 70c30865d2afe9d238150cc9a2d227bdbe2e9452 (diff) |
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
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 7 |
1 files changed, 7 insertions, 0 deletions
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"); |