From 263cebc2bd15cd8f1deead78862e36d178aed3bd Mon Sep 17 00:00:00 2001 From: Tracy Zhou Date: Thu, 31 Oct 2019 14:12:27 -0700 Subject: [PATCH] Finish the current task in live tile mode when swiping up and right to the previous task Fixes: 143714109 Test: manual Change-Id: I65689d49679e073be7fd51b92dd72f71ae11f37c --- .../android/quickstep/WindowTransformSwipeHandler.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quickstep/recents_ui_overrides/src/com/android/quickstep/WindowTransformSwipeHandler.java b/quickstep/recents_ui_overrides/src/com/android/quickstep/WindowTransformSwipeHandler.java index b55ec20d66..ad6a85297f 100644 --- a/quickstep/recents_ui_overrides/src/com/android/quickstep/WindowTransformSwipeHandler.java +++ b/quickstep/recents_ui_overrides/src/com/android/quickstep/WindowTransformSwipeHandler.java @@ -1028,6 +1028,15 @@ public class WindowTransformSwipeHandler @UiThread 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 -> { if (!success) { // We couldn't launch the task, so take user to overview so they can