Revert "Use clear-all recent tasks call"

This reverts commit 68df758665.

Reason for revert: Should be in master

Change-Id: I1a0d54c606c8cf1e52d5bdbfcd1acc6d0211ab49
This commit is contained in:
Winson Chung
2018-08-22 21:12:56 +00:00
parent 68df758665
commit dbbed57094
2 changed files with 4 additions and 2 deletions

Binary file not shown.

View File

@@ -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();
}