Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +13 −6 Original line number Diff line number Diff line Loading @@ -249,6 +249,11 @@ public class NotificationPanelView extends PanelView implements case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_UP: trackMovement(event); if (mTracking) { flingWithCurrentVelocity(); mTracking = false; } mIntercepting = false; break; } Loading @@ -264,6 +269,13 @@ public class NotificationPanelView extends PanelView implements } } private void flingWithCurrentVelocity() { float vel = getCurrentVelocity(); // TODO: Better logic whether we should expand or not. flingSettings(vel, vel > 0); } @Override public boolean onTouchEvent(MotionEvent event) { // TODO: Handle doublefinger swipe to notifications again. Look at history for a reference Loading Loading @@ -313,12 +325,7 @@ public class NotificationPanelView extends PanelView implements mTracking = false; mTrackingPointer = -1; trackMovement(event); float vel = getCurrentVelocity(); // TODO: Better logic whether we should expand or not. flingSettings(vel, vel > 0); flingWithCurrentVelocity(); if (mVelocityTracker != null) { mVelocityTracker.recycle(); mVelocityTracker = null; Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java +13 −6 Original line number Diff line number Diff line Loading @@ -249,6 +249,11 @@ public class NotificationPanelView extends PanelView implements case MotionEvent.ACTION_CANCEL: case MotionEvent.ACTION_UP: trackMovement(event); if (mTracking) { flingWithCurrentVelocity(); mTracking = false; } mIntercepting = false; break; } Loading @@ -264,6 +269,13 @@ public class NotificationPanelView extends PanelView implements } } private void flingWithCurrentVelocity() { float vel = getCurrentVelocity(); // TODO: Better logic whether we should expand or not. flingSettings(vel, vel > 0); } @Override public boolean onTouchEvent(MotionEvent event) { // TODO: Handle doublefinger swipe to notifications again. Look at history for a reference Loading Loading @@ -313,12 +325,7 @@ public class NotificationPanelView extends PanelView implements mTracking = false; mTrackingPointer = -1; trackMovement(event); float vel = getCurrentVelocity(); // TODO: Better logic whether we should expand or not. flingSettings(vel, vel > 0); flingWithCurrentVelocity(); if (mVelocityTracker != null) { mVelocityTracker.recycle(); mVelocityTracker = null; Loading