Merge "Finish the current task in live tile mode when swiping up and right to the previous task" into ub-launcher3-master

This commit is contained in:
Tracy Zhou
2019-11-01 20:42:28 +00:00
committed by Android (Google) Code Review
@@ -1028,6 +1028,15 @@ public class WindowTransformSwipeHandler<T extends BaseDraggingActivity>
@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