summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Selim Cinek <cinek@google.com> 2016-02-23 18:21:09 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2016-02-23 18:21:11 +0000
commit729166fb448b8c2a650439931c69f27da3238d8b (patch)
tree442a9bb71d9de20d8543d4c18fe032de6af46855
parentfe9731f4f287560d43f9af48c5be555e8a727955 (diff)
parent84e6de77788602bbd8dbb0b96c58c4254cb54b5b (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.java6
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;