commit | 263cebc2bd15cd8f1deead78862e36d178aed3bd | [log] [tgz] |
---|---|---|
author | Tracy Zhou <tracyzhou@google.com> | Thu Oct 31 14:12:27 2019 -0700 |
committer | Tracy Zhou <tracyzhou@google.com> | Thu Oct 31 14:12:27 2019 -0700 |
tree | df8b16b6ee136d1971f18ce1460b6face4fad6ab | |
parent | de6770a2ec88ee11c89b46fe3bd7dc0f3fba4cb9 [diff] |
Finish the current task in live tile mode when swiping up and right to the previous task Fixes: 143714109 Test: manual Change-Id: I65689d49679e073be7fd51b92dd72f71ae11f37c
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 b55ec20..ad6a852 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 @@ @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