fix array index out of bounds
we can't be removing items from the list while we're iterating through them! Test: Manual Change-Id: I18c70aced01269e196adbf4aa538c42345d74a95
This commit is contained in:
@@ -469,7 +469,7 @@ class InstantAppRegistry {
|
||||
return;
|
||||
}
|
||||
final int appCount = uninstalledAppStates.size();
|
||||
for (int i = 0; i < appCount; i++) {
|
||||
for (int i = appCount - 1; i >= 0; --i) {
|
||||
UninstalledInstantAppState uninstalledAppState = uninstalledAppStates.get(i);
|
||||
if (!criteria.test(uninstalledAppState)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user