[automerger] Use clear-all recent tasks call am: 68df758665

Change-Id: Ic8bcbef8d72e2ca48a2d6ffe4c0d7d40f2fba37c
This commit is contained in:
Android Build Merger (Role) committed 2018-08-03 18:15:53 +00:00
commit dc26977a26
2 files changed
+2 -4

No files matched your search

Binary file not shown.
@@ -990,10 +990,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();
}