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:
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user