summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2017-06-21 19:07:12 +0000
committer android-build-merger <android-build-merger@google.com> 2017-06-21 19:07:12 +0000
commit9dfc970b632cd6502ea22cd7fcac97d41ace24b2 (patch)
tree5eb563f662a4f2429961b21eeb355e10c77478c3
parent1d50b00962bf9d3a5f5c8b6e3948578af8aeac74 (diff)
parente8dceabd98fede5d32b2b1c630819801c1d46e5e (diff)
Merge "Fixed a bug where the panel could be stuck" into oc-dev
am: e8dceabd98 Change-Id: I8f6b3e2f853ff5a066de02ae0a006ebb4f157078
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/PanelView.java7
1 files 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 0b46c2111c88..1ef784e2ef42 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()) {
@@ -611,6 +611,9 @@ public abstract class PanelView extends FrameLayout {
protected void cancelHeightAnimator() {
if (mHeightAnimator != null) {
+ if (mHeightAnimator.isRunning()) {
+ mPanelUpdateWhenAnimatorEnds = false;
+ }
mHeightAnimator.cancel();
}
endClosing();