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

Commit 2eb47089 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents f2b97f8c dbbed570
Loading
Loading
Loading
Loading
−3.22 KiB (130 KiB)

File changed.

No diff preview for this file type.

+4 −2
Original line number Diff line number Diff line
@@ -935,8 +935,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
        mPendingAnimation = pendingAnimation;
        mPendingAnimation.addEndListener((onEndListener) -> {
            if (onEndListener.isSuccess) {
                // Remove all the task views now
                ActivityManagerWrapper.getInstance().removeAllRecentTasks();
                int taskViewCount = getTaskViewCount();
                for (int i = 0; i < taskViewCount; i++) {
                    removeTask(getTaskViewAt(i).getTask(), -1, onEndListener, false);
                }
                removeAllViews();
                onAllTasksRemoved();
            }