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

Commit ce1ad6f9 authored by Amith Yamasani's avatar Amith Yamasani Committed by The Android Automerger
Browse files

Fix a problem in finish affinity in Activity Manager.

Finishing tasks with an activity affinity was failing if the
activity was found at index 0. This fixes the loop condition.

Change-Id: If2e0d294e3e4493bca8b7efd40f24adaf2eb0b6f
parent 50bf7211
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3543,7 +3543,7 @@ final class ActivityStack {
        }
        ActivityRecord r = mHistory.get(index);

        while (index > 0) {
        while (index >= 0) {
            ActivityRecord cur = mHistory.get(index);
            if (cur.task != r.task) {
                break;