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

Commit 9c4601e4 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android Git Automerger
Browse files

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

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


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