From d18b86ff47ebd860443d9a465ba4ab33a05382df Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Wed, 21 Jun 2017 09:44:52 -0700 Subject: Fixed a bug where the panel could be stuck Test: collapse the panels, let go, tap quickly, panel isn't stuck Bug: 62602000 Change-Id: I449bcd4a6207c054eb5d536ba48ff8f05e26eb9a --- .../src/com/android/systemui/statusbar/phone/PanelView.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java index b1d82b1198a3..7462c27b648e 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java @@ -303,10 +303,10 @@ public abstract class PanelView extends FrameLayout { trackMovement(event); if (!mGestureWaitForTouchSlop || (mHeightAnimator != null && !mHintAnimationRunning) || mPeekAnimator != null) { - cancelHeightAnimator(); - cancelPeek(); mTouchSlopExceeded = (mHeightAnimator != null && !mHintAnimationRunning) || mPeekAnimator != null; + cancelHeightAnimator(); + cancelPeek(); onTrackingStarted(); } if (isFullyCollapsed() && !mHeadsUpManager.hasPinnedHeadsUp()) { @@ -607,6 +607,9 @@ public abstract class PanelView extends FrameLayout { protected void cancelHeightAnimator() { if (mHeightAnimator != null) { + if (mHeightAnimator.isRunning()) { + mPanelUpdateWhenAnimatorEnds = false; + } mHeightAnimator.cancel(); } endClosing(); -- cgit v1.2.3-59-g8ed1b