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

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

Merge "Keep the current page pointing to the running task when applying...

Merge "Keep the current page pointing to the running task when applying loadPlan" into ub-launcher3-master
parents e018711a 43798dea
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -484,6 +484,11 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
            final TaskView taskView = (TaskView) getChildAt(pageIndex);
            taskView.bind(task);
        }
        TaskView runningTaskView = getRunningTaskView();
        if (runningTaskView != null) {
            setCurrentPage(indexOfChild(runningTaskView));
        }

        if (mIgnoreResetTaskId != -1 && getTaskView(mIgnoreResetTaskId) != ignoreRestTaskView) {
            // If the taskView mapping is changing, do not preserve the visuals. Since we are
            // mostly preserving the first task, and new taskViews are added to the end, it should