summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jorim Jaggi <jjaggi@google.com> 2015-07-30 01:17:56 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-30 01:17:56 +0000
commit25e8a02e7005c080decd7b6119e03d8ab7f58c4f (patch)
treef0f5f1a8d119d12f1136fd53025cc9da19865d80
parentc778b9c5a55389cd2d2c34f16d26fc7755807a7a (diff)
parent8e116befc9dc59d47e64842012ba3d496e75ad3b (diff)
am 8e116bef: am cd6e8015: am 8e43c3e7: am 26aa04c3: Fix state weirdness in the panel
* commit '8e116befc9dc59d47e64842012ba3d496e75ad3b': Fix state weirdness in the panel
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
index 56e303264dc8..f8bd7937b437 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
@@ -626,6 +626,7 @@ public class NotificationPanelView extends PanelView implements
&& shouldQuickSettingsIntercept(mInitialTouchX, mInitialTouchY, h)) {
mQsTracking = true;
onQsExpansionStarted();
+ notifyExpandingFinished();
mInitialHeightOnTouch = mQsExpansionHeight;
mInitialTouchY = y;
mInitialTouchX = x;
@@ -825,9 +826,7 @@ public class NotificationPanelView extends PanelView implements
mInitialTouchX = event.getY();
// If we interrupt an expansion gesture here, make sure to update the state correctly.
- if (mIsExpanding) {
- onExpandingFinished();
- }
+ notifyExpandingFinished();
}
}
@@ -970,7 +969,6 @@ public class NotificationPanelView extends PanelView implements
private void onQsExpansionStarted(int overscrollAmount) {
cancelQsAnimation();
cancelHeightAnimator();
- notifyExpandingFinished();
// Reset scroll position and apply that position to the expanded height.
float height = mQsExpansionHeight - mScrollView.getScrollY() - overscrollAmount;