diff options
| author | 2015-07-30 00:53:04 +0000 | |
|---|---|---|
| committer | 2015-07-30 00:53:04 +0000 | |
| commit | cd6e80159670fdf02ce9c922a4469f2c2ec5a340 (patch) | |
| tree | 7e4cb6f50dcf0dada1e56fb1a96669bbab5591f9 | |
| parent | 647ef8c84ead2ff195efc47fd7dcdd4b9d96cca8 (diff) | |
| parent | 8e43c3e76f8edb9408dd49d673f76044e335ecd6 (diff) | |
am 8e43c3e7: am 26aa04c3: Fix state weirdness in the panel
* commit '8e43c3e76f8edb9408dd49d673f76044e335ecd6':
Fix state weirdness in the panel
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 6 |
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; |