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

Commit f6a1f178 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Dismiss keyguard if pulsing unlocked

BouncerExpansionCallback#onFullyShown will never be called when unlocked
because we collapse the shade without showing the PIN pad.
We need some special logic to make sure that the device will wake-up.

Test: swipe up from pulse when locked
Test: swipe up from pulse when unlocked
Fixes: 129315800
Change-Id: I740e598b180ad7aeb5b023a5984942b89ae1df5f
parent 0a71ae95
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -241,6 +241,10 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
                    && !mBouncer.isShowing() && !mBouncer.isAnimatingAway()) {
                mBouncer.show(false /* resetSecuritySelection */, false /* scrimmed */);
            }
        } else if (mPulsing && expansion == KeyguardBouncer.EXPANSION_VISIBLE) {
            // Panel expanded while pulsing but didn't translate the bouncer (because we are
            // unlocked.) Let's simply wake-up to dismiss the lock screen.
            mStatusBar.wakeUpIfDozing(SystemClock.uptimeMillis(), mContainer, "BOUNCER_VISIBLE");
        }
    }