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

Commit 57f1ac41 authored by Dianne Hackborn's avatar Dianne Hackborn
Browse files

Fix issue #3380072: Switching in and out of gmail not preserving position in label

We were doubly-decreasing the task's activity count, so when selected
from recent tasks it would re-launch the last Intent rather than
switching to its current state.

Change-Id: I6e58c930a0755ae0142604d42b5cd2c668a2b492
parent 66a9f48b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -3187,7 +3187,6 @@ public class ActivityStack {
        EventLog.writeEvent(EventLogTags.AM_FINISH_ACTIVITY,
                System.identityHashCode(r),
                r.task.taskId, r.shortComponentName, reason);
        r.task.numActivities--;
        if (index < (mHistory.size()-1)) {
            ActivityRecord next = (ActivityRecord)mHistory.get(index+1);
            if (next.task == r.task) {