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

This commit is contained in:
TreeHugger Robot
2018-08-22 21:22:47 +00:00
committed by Android (Google) Code Review
2 changed files with 4 additions and 2 deletions
Binary file not shown.
@@ -935,8 +935,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
mPendingAnimation = pendingAnimation;
mPendingAnimation.addEndListener((onEndListener) -> {
if (onEndListener.isSuccess) {
// Remove all the task views now
ActivityManagerWrapper.getInstance().removeAllRecentTasks();
int taskViewCount = getTaskViewCount();
for (int i = 0; i < taskViewCount; i++) {
removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false);
}
removeAllViews();
onAllTasksRemoved();
}