diff options
author | Arne Coucheron <arco68@gmail.com> | 2021-03-30 01:41:16 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-05-07 00:20:58 +0800 |
commit | 3b51d540b309b151eec753fe3070d13bd955d2f4 (patch) | |
tree | 6b0411904c6a0e3cc8e1d4360a6a669eee7b8112 /packages | |
parent | 751b65d6d5ac97e35acc1df84b0456909b698820 (diff) |
keyguard: Do not trigger a wake up when hiding lockscreen
* This piece of code was introduced in commit:
Swipe up to unlock when pulsing
Change-Id: Ida5adb6a18f3ee992b1d154e10b35ba244f5b712
However, it appears to not be needed and instead causes the device
to wakeup right after dozing with no lockscreen set.
* Remove it and test with:
adb shell am broadcast -a com.android.systemui.doze.pulse com.android.systemui
The device can still be unlocked from pulsing state.
Change-Id: Ib5c2f930bd4de04cbf8f89f12d046f30c9b32a52
Diffstat (limited to 'packages')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java index 862358f02900..8c28b6e354ec 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -2172,13 +2172,6 @@ public class KeyguardViewMediator extends SystemUI 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) { - 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"); |