Loading packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +14 −5 Original line number Diff line number Diff line Loading @@ -485,10 +485,7 @@ public class CarStatusBar extends StatusBar implements mNotificationListAtBottomAtTimeOfTouch = false; } boolean handled = false; if (mNotificationListAtBottomAtTimeOfTouch && mNotificationListAtBottom) { handled = closeGestureDetector.onTouchEvent(event); } boolean handled = closeGestureDetector.onTouchEvent(event); boolean isTracking = mIsTracking; Rect rect = mNotificationList.getClipBounds(); float clippedHeight = 0; Loading Loading @@ -1036,9 +1033,19 @@ public class CarStatusBar extends StatusBar implements private abstract class CloseNotificationGestureListener extends GestureDetector.SimpleOnGestureListener { @Override public boolean onSingleTapUp(MotionEvent motionEvent) { animateNotificationPanel(DEFAULT_FLING_VELOCITY, true); return false; } @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; } Loading Loading @@ -1074,7 +1081,9 @@ public class CarStatusBar extends StatusBar implements @Override public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) { if (!mNotificationListAtBottomAtTimeOfTouch && !mNotificationListAtBottom) { return false; } if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH || Math.abs(velocityY) < SWIPE_THRESHOLD_VELOCITY) { // swipe was not vertical or was not fast enough Loading Loading
packages/CarSystemUI/src/com/android/systemui/statusbar/car/CarStatusBar.java +14 −5 Original line number Diff line number Diff line Loading @@ -485,10 +485,7 @@ public class CarStatusBar extends StatusBar implements mNotificationListAtBottomAtTimeOfTouch = false; } boolean handled = false; if (mNotificationListAtBottomAtTimeOfTouch && mNotificationListAtBottom) { handled = closeGestureDetector.onTouchEvent(event); } boolean handled = closeGestureDetector.onTouchEvent(event); boolean isTracking = mIsTracking; Rect rect = mNotificationList.getClipBounds(); float clippedHeight = 0; Loading Loading @@ -1036,9 +1033,19 @@ public class CarStatusBar extends StatusBar implements private abstract class CloseNotificationGestureListener extends GestureDetector.SimpleOnGestureListener { @Override public boolean onSingleTapUp(MotionEvent motionEvent) { animateNotificationPanel(DEFAULT_FLING_VELOCITY, true); return false; } @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; } Loading Loading @@ -1074,7 +1081,9 @@ public class CarStatusBar extends StatusBar implements @Override public boolean onFling(MotionEvent event1, MotionEvent event2, float velocityX, float velocityY) { if (!mNotificationListAtBottomAtTimeOfTouch && !mNotificationListAtBottom) { return false; } if (Math.abs(event1.getX() - event2.getX()) > SWIPE_MAX_OFF_PATH || Math.abs(velocityY) < SWIPE_THRESHOLD_VELOCITY) { // swipe was not vertical or was not fast enough Loading