Loading libs/WindowManager/Shell/src/com/android/wm/shell/common/split/DividerView.java +1 −2 Original line number Diff line number Diff line Loading @@ -131,11 +131,10 @@ public class DividerView extends FrameLayout implements View.OnTouchListener { break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: mVelocityTracker.addMovement(event); releaseTouching(); if (!mMoving) break; mVelocityTracker.addMovement(event); mVelocityTracker.computeCurrentVelocity(1000 /* units */); final float velocity = isLandscape ? mVelocityTracker.getXVelocity() Loading libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/DividerView.java +5 −3 Original line number Diff line number Diff line Loading @@ -521,12 +521,14 @@ public class DividerView extends FrameLayout implements OnTouchListener, break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: mVelocityTracker.addMovement(event); if (!mMoving) break; if (!mMoving) { stopDragging(); break; } x = (int) event.getRawX(); y = (int) event.getRawY(); mVelocityTracker.addMovement(event); mVelocityTracker.computeCurrentVelocity(1000); int position = calculatePosition(x, y); stopDragging(position, isHorizontalDivision() ? mVelocityTracker.getYVelocity() Loading Loading
libs/WindowManager/Shell/src/com/android/wm/shell/common/split/DividerView.java +1 −2 Original line number Diff line number Diff line Loading @@ -131,11 +131,10 @@ public class DividerView extends FrameLayout implements View.OnTouchListener { break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: mVelocityTracker.addMovement(event); releaseTouching(); if (!mMoving) break; mVelocityTracker.addMovement(event); mVelocityTracker.computeCurrentVelocity(1000 /* units */); final float velocity = isLandscape ? mVelocityTracker.getXVelocity() Loading
libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/DividerView.java +5 −3 Original line number Diff line number Diff line Loading @@ -521,12 +521,14 @@ public class DividerView extends FrameLayout implements OnTouchListener, break; case MotionEvent.ACTION_UP: case MotionEvent.ACTION_CANCEL: mVelocityTracker.addMovement(event); if (!mMoving) break; if (!mMoving) { stopDragging(); break; } x = (int) event.getRawX(); y = (int) event.getRawY(); mVelocityTracker.addMovement(event); mVelocityTracker.computeCurrentVelocity(1000); int position = calculatePosition(x, y); stopDragging(position, isHorizontalDivision() ? mVelocityTracker.getYVelocity() Loading