Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 15c560d6 authored by Arne Coucheron's avatar Arne Coucheron Committed by Bruno Martins
Browse files

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
parent d430d5fb
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2384,13 +2384,6 @@ 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");