From 57f1ac41337b019f6ad568769264ec519f917cf7 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Wed, 26 Jan 2011 13:28:16 -0800 Subject: [PATCH] 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 --- services/java/com/android/server/am/ActivityStack.java | 1 - 1 file changed, 1 deletion(-) diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index 2040cbd956ef6..5b44d39037d2c 100644 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java @@ -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) {