am ce7dba6b: Merge "[ActivityManager] Fix index OOB when updating visible."
* commit 'ce7dba6bdf2345f39ad8f39b8a4c1bac9bcd35ea': [ActivityManager] Fix index OOB when updating visible.
This commit is contained in:
@@ -1258,6 +1258,10 @@ final class ActivityStack {
|
|||||||
}
|
}
|
||||||
if (r != starting) {
|
if (r != starting) {
|
||||||
mStackSupervisor.startSpecificActivityLocked(r, false, false);
|
mStackSupervisor.startSpecificActivityLocked(r, false, false);
|
||||||
|
if (activityNdx >= activities.size()) {
|
||||||
|
// Record may be removed if its process needs to restart.
|
||||||
|
activityNdx = activities.size() - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (r.visible) {
|
} else if (r.visible) {
|
||||||
|
|||||||
Reference in New Issue
Block a user