Do not run peek animation when keyguard is fading

Test: answer challenge, tap repeatedly: animation doesn't run
Test: tap on navbar when unlocked: animation runs
Change-Id: Ibea423fca69a77e61f4b178c58e9839cd8979d7c
Fixes: 75313101
This commit is contained in:
Lucas Dupin
2018-04-02 13:47:16 -07:00
parent 50228a6471
commit ec46f3845a

View File

@@ -488,7 +488,7 @@ public abstract class PanelView extends FrameLayout {
mUpdateFlingVelocity = vel;
}
} else if (mPanelClosedOnDown && !mHeadsUpManager.hasPinnedHeadsUp() && !mTracking
&& !mStatusBar.isBouncerShowing()) {
&& !mStatusBar.isBouncerShowing() && !mStatusBar.isKeyguardFadingAway()) {
long timePassed = SystemClock.uptimeMillis() - mDownTime;
if (timePassed < ViewConfiguration.getLongPressTimeout()) {
// Lets show the user that he can actually expand the panel