Automated import from //branches/master/...@140830,140830

This commit is contained in:
Dianne Hackborn
2009-03-24 18:38:23 -07:00
committed by The Android Open Source Project
parent 678764730b
commit 04750b6b43
4 changed files with 38 additions and 10 deletions

View File

@@ -10142,11 +10142,7 @@ public final class ActivityManagerService extends ActivityManagerNative implemen
// this decision.
boolean skip = false;
if (intent.ACTION_PACKAGE_ADDED.equals(intent.getAction())) {
// If this is replacing an existing package, then we allow it
// to see the broadcast for it to restart itself.
if (!intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
skip = true;
}
skip = true;
} else if (intent.ACTION_PACKAGE_RESTARTED.equals(intent.getAction())) {
skip = true;
} else if (intent.ACTION_PACKAGE_DATA_CLEARED.equals(intent.getAction())) {