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 = 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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue