Merge "Use clear-all recent tasks call" into ub-launcher3-edmonton-polish

This commit is contained in:
TreeHugger Robot
2018-08-03 18:26:51 +00:00
committed by Android (Google) Code Review
2 changed files with 2 additions and 4 deletions

Binary file not shown.

View File

@@ -935,10 +935,8 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
mPendingAnimation = pendingAnimation;
mPendingAnimation.addEndListener((onEndListener) -> {
if (onEndListener.isSuccess) {
int taskViewCount = getTaskViewCount();
for (int i = 0; i < taskViewCount; i++) {
removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false);
}
// Remove all the task views now
ActivityManagerWrapper.getInstance().removeAllRecentTasks();
removeAllViews();
onAllTasksRemoved();
}