Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit dc26977a authored by Android Build Merger (Role)'s avatar Android Build Merger (Role)
Browse files

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

Change-Id: Ic8bcbef8d72e2ca48a2d6ffe4c0d7d40f2fba37c
parents 7f636827 68df7586
Loading
Loading
Loading
Loading
+3.22 KiB (133 KiB)

File changed.

No diff preview for this file type.

+2 −4
Original line number Diff line number Diff line
@@ -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();
            }