Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e5930bf2 authored by Priyank Singh's avatar Priyank Singh Committed by android-build-merger
Browse files

Merge "Fling should only be allowed when touched the view from bottom of the...

Merge "Fling should only be allowed when touched the view from bottom of the list" into qt-dev am: 325c12be am: b58ee2a4
am: 80147a68

Change-Id: Ifd758082fb63f64ba8d48cd84736f660442419dc
parents b891a9cb 80147a68
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -1102,9 +1102,6 @@ public class CarStatusBar extends StatusBar implements
        @Override
        public boolean onScroll(MotionEvent event1, MotionEvent event2, float distanceX,
                float distanceY) {
            if (!mNotificationListAtBottomAtTimeOfTouch && !mNotificationListAtBottom) {
                return false;
            }
            // should not clip while scroll to the bottom of the list.
            if (!mNotificationListAtBottomAtTimeOfTouch) {
                return false;
@@ -1141,7 +1138,8 @@ public class CarStatusBar extends StatusBar implements
        @Override
        public boolean onFling(MotionEvent event1, MotionEvent event2,
                float velocityX, float velocityY) {
            if (!mNotificationListAtBottomAtTimeOfTouch && !mNotificationListAtBottom) {
            // should not fling if the touch does not start when view is at the bottom of the list.
            if (!mNotificationListAtBottomAtTimeOfTouch) {
                return false;
            }
            if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH