Merge "Fix bug with CLEAR_TASK -- wouldn't clear the top activity." into ics-mr0
This commit is contained in:
committed by
Android (Google) Code Review
commit
97e9ea98af
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user