Merge "Fix bug with CLEAR_TASK -- wouldn't clear the top activity." into ics-mr0

This commit is contained in:
Dianne Hackborn
2011-10-13 16:44:26 -07:00
committed by Android (Google) Code Review

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.