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

Commit f0b8ef9d authored by Alex Chau's avatar Alex Chau
Browse files

Only restore previous currentPage in applyLoadPlan if mCurrentPage is outdated

Bug: 197493120
Test: manual
Change-Id: I196088c848f9fa8ec23f6c803226d674ba3e088b
parent 12515823
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1367,7 +1367,10 @@ public abstract class RecentsView<ACTIVITY_TYPE extends StatefulActivity<STATE_T
        } else if (currentTaskId != -1) {
            currentTaskView = getTaskViewByTaskId(currentTaskId);
            if (currentTaskView != null) {
                setCurrentPage(indexOfChild(currentTaskView));
                int currentTaskViewIndex = indexOfChild(currentTaskView);
                if (mCurrentPage != currentTaskViewIndex) {
                    setCurrentPage(currentTaskViewIndex);
                }
            }
        }