am 97e9ea98: Merge "Fix bug with CLEAR_TASK -- wouldn\'t clear the top activity." into ics-mr0
* commit '97e9ea98afac197722d7620d5fd09a8c06aafe3a': Fix bug with CLEAR_TASK -- wouldn't clear the top activity.
This commit is contained in:
@@ -2067,7 +2067,7 @@ final class ActivityStack {
|
|||||||
* task starting at a specified index.
|
* task starting at a specified index.
|
||||||
*/
|
*/
|
||||||
private final void performClearTaskAtIndexLocked(int taskId, int i) {
|
private final void performClearTaskAtIndexLocked(int taskId, int i) {
|
||||||
while (i < (mHistory.size()-1)) {
|
while (i < mHistory.size()) {
|
||||||
ActivityRecord r = mHistory.get(i);
|
ActivityRecord r = mHistory.get(i);
|
||||||
if (r.task.taskId != taskId) {
|
if (r.task.taskId != taskId) {
|
||||||
// Whoops hit the end.
|
// Whoops hit the end.
|
||||||
|
|||||||
Reference in New Issue
Block a user