Merge "Revert "Ignore swipe velocity if next task is considered the destination."" into tm-dev am: a7783dba56 am: 05eb78ce96
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/18361480
Change-Id: Ibb91bea7df676b58a1198e1c9ec30a0fc04e35a1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java
index dc2b61b..f60b225 100644
--- a/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java
+++ b/quickstep/src/com/android/quickstep/AbsSwipeUpHandler.java
@@ -1065,11 +1065,10 @@
: LAST_TASK;
}
} else {
- // If swiping at a diagonal on the current task, base end target on the faster velocity.
+ // If swiping at a diagonal, base end target on the faster velocity.
boolean isSwipeUp = endVelocity < 0;
- boolean willGoToNewTask = canGoToNewTask && (
- mRecentsView.getDestinationPage() != mRecentsView.getCurrentPage()
- || Math.abs(velocity.x) > Math.abs(endVelocity));
+ boolean willGoToNewTask =
+ canGoToNewTask && Math.abs(velocity.x) > Math.abs(endVelocity);
if (mDeviceState.isFullyGesturalNavMode() && isSwipeUp) {
endTarget = willGoToNewTask ? NEW_TASK : HOME;