commit | eabd328deea453a31d6b8f738c5bf0c3974d48b1 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Thu Oct 13 16:26:49 2011 -0700 |
committer | Dianne Hackborn <hackbod@google.com> | Thu Oct 13 16:26:49 2011 -0700 |
tree | 3366d520b856166dfe1e349cde33ec735c267ac0 | |
parent | 97175bc3277055047d4c3e6109824065f2abec5d [diff] [blame] |
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
diff --git a/services/java/com/android/server/am/ActivityStack.java b/services/java/com/android/server/am/ActivityStack.java index b9d3d76..1aed7fe0 100644 --- a/services/java/com/android/server/am/ActivityStack.java +++ b/services/java/com/android/server/am/ActivityStack.java
@@ -2067,7 +2067,7 @@ * 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.