Fix issue where bouncer won't be dismissed when being dragged

Because the animation might have finished but bouncer is not fully visible yet.

Test: start dragging, wait for animation, then auth with face
Fixes: 132846921
Change-Id: I0155d0ddffb628c94c9d427826f54995bc9b3671
This commit is contained in:
Lucas Dupin
2019-07-12 17:46:11 +09:00
parent 74a0753481
commit b7d3274126
2 changed files with 4 additions and 4 deletions

View File

@@ -346,10 +346,10 @@ public class KeyguardBouncer {
}
/**
* {@link #show(boolean)} was called but we're not showing yet.
* {@link #show(boolean)} was called but we're not showing yet, or being dragged.
*/
public boolean willShowSoon() {
return mShowingSoon;
public boolean inTransit() {
return mShowingSoon || mExpansion != EXPANSION_HIDDEN;
}
/**

View File

@@ -719,7 +719,7 @@ public class StatusBarKeyguardViewManager implements RemoteInputController.Callb
* animation didn't finish yet.
*/
public boolean bouncerIsOrWillBeShowing() {
return mBouncer.isShowing() || mBouncer.willShowSoon();
return mBouncer.isShowing() || mBouncer.inTransit();
}
public boolean isFullscreenBouncer() {