diff options
author | Arne Coucheron <arco68@gmail.com> | 2021-03-30 01:41:16 +0200 |
---|---|---|
committer | alk3pInjection <webmaster@raspii.tech> | 2022-01-26 11:42:56 +0800 |
commit | 4e8c9988adcdf8f291c67ad3ededd98367a35512 (patch) | |
tree | be02f5ef0ff0f23fac128788e23187cfd93b16d0 | |
parent | 55d8e54156068fb9f46918441e81b7fb801a3226 (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
-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 926b4cc94c6a..78f77dadb200 100644 --- a/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java +++ b/packages/SystemUI/src/com/android/systemui/keyguard/KeyguardViewMediator.java @@ -2148,13 +2148,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"); |