mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-03 09:26:51 +00:00
Merge "Revert "Ignore swipe velocity if next task is considered the destination."" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a7783dba56
@@ -1065,11 +1065,10 @@ public abstract class AbsSwipeUpHandler<T extends StatefulActivity<S>,
|
||||
: 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;
|
||||
|
||||
Reference in New Issue
Block a user