diff options
| author | 2016-02-23 18:21:09 +0000 | |
|---|---|---|
| committer | 2016-02-23 18:21:11 +0000 | |
| commit | 729166fb448b8c2a650439931c69f27da3238d8b (patch) | |
| tree | 442a9bb71d9de20d8543d4c18fe032de6af46855 | |
| parent | fe9731f4f287560d43f9af48c5be555e8a727955 (diff) | |
| parent | 84e6de77788602bbd8dbb0b96c58c4254cb54b5b (diff) | |
Merge "Fixed a bug where QS could fling up even when collapsing" into nyc-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java | 6 |
1 files changed, 5 insertions, 1 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 8381f185cc49..05ae41be33d4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java @@ -879,7 +879,11 @@ public class NotificationPanelView extends PanelView implements mQsTracking = false; mTrackingPointer = -1; trackMovement(event); - flingQsWithCurrentVelocity(y, event.getActionMasked() == MotionEvent.ACTION_CANCEL); + float fraction = getQsExpansionFraction(); + if (fraction != 0f || y >= mInitialTouchY) { + flingQsWithCurrentVelocity(y, + event.getActionMasked() == MotionEvent.ACTION_CANCEL); + } if (mVelocityTracker != null) { mVelocityTracker.recycle(); mVelocityTracker = null; |