Skip to content

Commit eabd328

Browse files
author
Dianne Hackborn
committed
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
1 parent 97175bc commit eabd328

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)