Merge "fix array index out of bounds"

This commit is contained in:
TreeHugger Robot
2017-01-31 22:54:58 +00:00
committed by Android (Google) Code Review

View File

@@ -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;