Use clear-all recent tasks call

Change-Id: I1c93bffa0573d0a37a86b62f5a7ec948ac11799e
This commit is contained in:
Winson Chung
2018-08-22 16:16:16 -07:00
parent 018e3c4447
commit 6ed64355b4
@@ -995,10 +995,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();
}