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
This commit is contained in:
Lucas Dupin
2019-04-18 20:57:40 -07:00
parent 0a71ae9536
commit f6a1f1783e

View File

@@ -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");
}
}