Use clear-all recent tasks call

Bug: 80471073
Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
This commit is contained in:
Winson Chung 2018-07-30 15:58:01 -07:00
parent fc254baf88
commit 68df758665
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 = pendingAnimation;
mPendingAnimation.addEndListener((onEndListener) -> { mPendingAnimation.addEndListener((onEndListener) -> {
if (onEndListener.isSuccess) { if (onEndListener.isSuccess) {
int taskViewCount = getTaskViewCount(); // Remove all the task views now
for (int i = 0; i < taskViewCount; i++) { ActivityManagerWrapper.getInstance().removeAllRecentTasks();
removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false);
}
removeAllViews(); removeAllViews();
onAllTasksRemoved(); onAllTasksRemoved();
} }