Merge "[ActivityManager] Fix index OOB when resetting removed task"
This commit is contained in:
@@ -2445,9 +2445,11 @@ final class ActivityStack {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int taskNdx = mTaskHistory.indexOf(task);
|
int taskNdx = mTaskHistory.indexOf(task);
|
||||||
do {
|
if (taskNdx >= 0) {
|
||||||
taskTop = mTaskHistory.get(taskNdx--).getTopActivity();
|
do {
|
||||||
} while (taskTop == null && taskNdx >= 0);
|
taskTop = mTaskHistory.get(taskNdx--).getTopActivity();
|
||||||
|
} while (taskTop == null && taskNdx >= 0);
|
||||||
|
}
|
||||||
|
|
||||||
if (topOptions != null) {
|
if (topOptions != null) {
|
||||||
// If we got some ActivityOptions from an activity on top that
|
// If we got some ActivityOptions from an activity on top that
|
||||||
|
|||||||
Reference in New Issue
Block a user