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

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

am 70e67733: am e8246ff7: Merge "Fixed out of bounds exception while handling...

am 70e67733: am e8246ff7: Merge "Fixed out of bounds exception while handling app crash" into mnc-dev

* commit '70e67733':
  Fixed out of bounds exception while handling app crash
parents db6db412 70e67733
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -3205,10 +3205,10 @@ public final class ActivityStackSupervisor implements DisplayListener {
    void handleAppCrashLocked(ProcessRecord app) {
        for (int displayNdx = mActivityDisplays.size() - 1; displayNdx >= 0; --displayNdx) {
            final ArrayList<ActivityStack> stacks = mActivityDisplays.valueAt(displayNdx).mStacks;
            final int numStacks = stacks.size();
            for (int stackNdx = 0; stackNdx < numStacks; ++stackNdx) {
                final ActivityStack stack = stacks.get(stackNdx);
                stack.handleAppCrashLocked(app);
            int stackNdx = stacks.size() - 1;
            while (stackNdx >= 0) {
                stacks.get(stackNdx).handleAppCrashLocked(app);
                stackNdx--;
            }
        }
    }