Merge "Fix issue #13199860: PRE_BOOT_COMPLETED intent is..." into klp-dev

This commit is contained in:
Dianne Hackborn
2014-03-07 01:04:50 +00:00
committed by Android (Google) Code Review

View File

@@ -9225,8 +9225,13 @@ public final class ActivityManagerService extends ActivityManagerNative
ActivityInfo ai = ris.get(i).activityInfo; ActivityInfo ai = ris.get(i).activityInfo;
ComponentName comp = new ComponentName(ai.packageName, ai.name); ComponentName comp = new ComponentName(ai.packageName, ai.name);
if (lastDoneReceivers.contains(comp)) { if (lastDoneReceivers.contains(comp)) {
// We already did the pre boot receiver for this app with the current
// platform version, so don't do it again...
ris.remove(i); ris.remove(i);
i--; i--;
// ...however, do keep it as one that has been done, so we don't
// forget about it when rewriting the file of last done receivers.
doneReceivers.add(comp);
} }
} }