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

Commit 48ef6c7d authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android Git Automerger
Browse files

am 91ef7852: am 9c4601e4: am 77b09382: Merge "[ActivityManager] Fix index OOB...

am 91ef7852: am 9c4601e4: am 77b09382: Merge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev

* commit '91ef7852':
  [ActivityManager] Fix index OOB when updating visible.
parents ed12fb95 91ef7852
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -1326,8 +1326,13 @@ final class ActivityStack {
                        if (r != starting) {
                            mStackSupervisor.startSpecificActivityLocked(
                                    r, noStackActivityResumed, false);
                            if (activityNdx >= activities.size()) {
                                // Record may be removed if its process needs to restart.
                                activityNdx = activities.size() - 1;
                            } else {
                                noStackActivityResumed = false;
                            }
                        }

                    } else if (r.visible) {
                        // If this activity is already visible, then there is nothing