Loading quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java +17 −16 Original line number Diff line number Diff line Loading @@ -166,8 +166,8 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo float velocityDp = dpiFromPx(velocity); boolean isFling = Math.abs(velocityDp) > 1; LauncherStateManager stateManager = mLauncher.getStateManager(); if (isFling) { // When flinging, go back to home instead of overview. boolean goToHomeInsteadOfOverview = isFling; if (goToHomeInsteadOfOverview) { if (velocity > 0) { stateManager.goToState(NORMAL, true, () -> onSwipeInteractionCompleted(NORMAL, Touch.FLING)); Loading @@ -187,7 +187,7 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo () -> onSwipeInteractionCompleted(NORMAL, Touch.SWIPE))); anim.start(); } } else { } if (mReachedOverview) { float distanceDp = dpiFromPx(Math.max( Math.abs(mRecentsView.getTranslationX()), Loading @@ -199,8 +199,9 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo .translationY(0) .setInterpolator(ACCEL_DEACCEL) .setDuration(duration) .withEndAction(this::maybeSwipeInteractionToOverviewComplete); } .withEndAction(goToHomeInsteadOfOverview ? null : this::maybeSwipeInteractionToOverviewComplete); } } Loading Loading
quickstep/recents_ui_overrides/src/com/android/launcher3/uioverrides/touchcontrollers/NoButtonNavbarToOverviewTouchController.java +17 −16 Original line number Diff line number Diff line Loading @@ -166,8 +166,8 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo float velocityDp = dpiFromPx(velocity); boolean isFling = Math.abs(velocityDp) > 1; LauncherStateManager stateManager = mLauncher.getStateManager(); if (isFling) { // When flinging, go back to home instead of overview. boolean goToHomeInsteadOfOverview = isFling; if (goToHomeInsteadOfOverview) { if (velocity > 0) { stateManager.goToState(NORMAL, true, () -> onSwipeInteractionCompleted(NORMAL, Touch.FLING)); Loading @@ -187,7 +187,7 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo () -> onSwipeInteractionCompleted(NORMAL, Touch.SWIPE))); anim.start(); } } else { } if (mReachedOverview) { float distanceDp = dpiFromPx(Math.max( Math.abs(mRecentsView.getTranslationX()), Loading @@ -199,8 +199,9 @@ public class NoButtonNavbarToOverviewTouchController extends FlingAndHoldTouchCo .translationY(0) .setInterpolator(ACCEL_DEACCEL) .setDuration(duration) .withEndAction(this::maybeSwipeInteractionToOverviewComplete); } .withEndAction(goToHomeInsteadOfOverview ? null : this::maybeSwipeInteractionToOverviewComplete); } } Loading