Merge "Fixed a bug where QS could fling up even when collapsing" into nyc-dev
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user