Merge "[ActivityManager] Fix index OOB when updating visible." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
77b093824f
@@ -1326,7 +1326,12 @@ final class ActivityStack {
|
||||
if (r != starting) {
|
||||
mStackSupervisor.startSpecificActivityLocked(
|
||||
r, noStackActivityResumed, false);
|
||||
noStackActivityResumed = false;
|
||||
if (activityNdx >= activities.size()) {
|
||||
// Record may be removed if its process needs to restart.
|
||||
activityNdx = activities.size() - 1;
|
||||
} else {
|
||||
noStackActivityResumed = false;
|
||||
}
|
||||
}
|
||||
|
||||
} else if (r.visible) {
|
||||
|
||||
Reference in New Issue
Block a user