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

Commit 87a67dae authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Fixing IndexOutOfBounds Exception in ActivityManager"

parents 04de1528 a36bb31d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1060,6 +1060,9 @@ final class ActivityStack {
            final TaskRecord task = mTaskHistory.get(taskNdx);
            final ArrayList<ActivityRecord> activities = task.mActivities;
            for (int activityNdx = activities.size() - 1; activityNdx >= 0; --activityNdx) {
                if(activityNdx >= activities.size()) {
                    continue;
                }
                final ActivityRecord r = activities.get(activityNdx);
                if (r.finishing) {
                    continue;