Skip to content

Commit 97e9ea9

Browse files
Dianne HackbornAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug with CLEAR_TASK -- wouldn't clear the top activity." into ics-mr0
2 parents e606329 + eabd328 commit 97e9ea9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/java/com/android/server/am/ActivityStack.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2067,7 +2067,7 @@ private final ActivityRecord performClearTaskLocked(int taskId,
20672067
* task starting at a specified index.
20682068
*/
20692069
private final void performClearTaskAtIndexLocked(int taskId, int i) {
2070-
while (i < (mHistory.size()-1)) {
2070+
while (i < mHistory.size()) {
20712071
ActivityRecord r = mHistory.get(i);
20722072
if (r.task.taskId != taskId) {
20732073
// Whoops hit the end.

0 commit comments

Comments
 (0)