Don't remove alarms for packages that are being updated.

Change-Id: I296e6587aa1bb391e748ff4bb5649dcfa6ebbc24
This commit is contained in:
Dianne Hackborn
2010-03-10 17:23:43 -08:00
parent bfb5d4b93b
commit 409578fcb1

View File

@@ -821,6 +821,11 @@ class AlarmManagerService extends IAlarmManager.Stub {
} else if (Intent.ACTION_EXTERNAL_APPLICATIONS_UNAVAILABLE.equals(action)) {
pkgList = intent.getStringArrayExtra(Intent.EXTRA_CHANGED_PACKAGE_LIST);
} else {
if (Intent.ACTION_PACKAGE_REMOVED.equals(action)
&& intent.getBooleanExtra(Intent.EXTRA_REPLACING, false)) {
// This package is being updated; don't kill its alarms.
return;
}
Uri data = intent.getData();
if (data != null) {
String pkg = data.getSchemeSpecificPart();