OSDN Git Service

Do not run peek animation when keyguard is fading
authorLucas Dupin <dupin@google.com>
Mon, 2 Apr 2018 20:47:16 +0000 (13:47 -0700)
committerLucas Dupin <dupin@google.com>
Mon, 2 Apr 2018 22:21:29 +0000 (15:21 -0700)
Test: answer challenge, tap repeatedly: animation doesn't run
Test: tap on navbar when unlocked: animation runs
Change-Id: Ibea423fca69a77e61f4b178c58e9839cd8979d7c
Fixes: 75313101

packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java

index 04cb620..304a499 100644 (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