Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7df9b8b authored by Tracy Zhou's avatar Tracy Zhou Committed by Android (Google) Code Review
Browse files

Merge "Finish the current task in live tile mode when swiping up and right to...

Merge "Finish the current task in live tile mode when swiping up and right to the previous task" into ub-launcher3-master
parents 3f43d823 263cebc2
Loading
Loading
Loading
Loading
+9 −0
Original line number Original line Diff line number Diff line
@@ -1028,6 +1028,15 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>


    @UiThread
    @UiThread
    private void startNewTask() {
    private void startNewTask() {
        if (ENABLE_QUICKSTEP_LIVE_TILE.get()) {
            mRecentsAnimationController.finish(true /* toRecents */, this::startNewTaskInternal);
        } else {
            startNewTaskInternal();
        }
    }

    @UiThread
    private void startNewTaskInternal() {
        startNewTask(STATE_HANDLER_INVALIDATED, success -> {
        startNewTask(STATE_HANDLER_INVALIDATED, success -> {
            if (!success) {
            if (!success) {
                // We couldn't launch the task, so take user to overview so they can
                // We couldn't launch the task, so take user to overview so they can