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

Commit eabd328d authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix bug with CLEAR_TASK -- wouldn't clear the top activity.

Maybe this will also fix bug #5144065 as well.

I doubt I am so lucky, though.

Change-Id: I60bf595d3eff79353fdd94b0f2a089e81218bc30
parent 97175bc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2067,7 +2067,7 @@ final class ActivityStack {
     * task starting at a specified index.
     */
    private final void performClearTaskAtIndexLocked(int taskId, int i) {
        while (i < (mHistory.size()-1)) {
        while (i < mHistory.size()) {
            ActivityRecord r = mHistory.get(i);
            if (r.task.taskId != taskId) {
                // Whoops hit the end.