am d09289ed: am 97e9ea98: Merge "Fix bug with CLEAR_TASK -- wouldn\'t clear the top activity." into ics-mr0

* commit 'd09289ed80a56864c74024f8a2266a0c34c00d0b':
  Fix bug with CLEAR_TASK -- wouldn't clear the top activity.
This commit is contained in:
Dianne Hackborn
2011-10-13 16:47:27 -07:00
committed by Android Git Automerger

View File

@@ -2067,7 +2067,7 @@ final class ActivityStack {
* 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.