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

Commit ce7dba6b authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Gerrit Code Review
Browse files

Merge "[ActivityManager] Fix index OOB when updating visible."

parents b77bc869 3fe52da4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1258,6 +1258,10 @@ final class ActivityStack {
                        }
                        if (r != starting) {
                            mStackSupervisor.startSpecificActivityLocked(r, false, false);
                            if (activityNdx >= activities.size()) {
                                // Record may be removed if its process needs to restart.
                                activityNdx = activities.size() - 1;
                            }
                        }

                    } else if (r.visible) {