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

This commit is contained in:
TreeHugger Robot authored and Android (Google) Code Review committed 2018-08-03 18:26:51 +00:00
commit 40ea0f8a1c
2 files changed
+2 -4

No files matched your search

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