Use clear-all recent tasks call
Bug: 80471073 Change-Id: Ibce9d521ba8d3903ff1f2fbdabfd391b15630bd7
This commit is contained in:
parent
fc254baf88
commit
68df758665
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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue