am ab4b6c42: Add replace flag to a few more broadcasts.

Merge commit 'ab4b6c42d78b3d8230d8b444e301f2691884980e' into eclair-mr2-plus-aosp

* commit 'ab4b6c42d78b3d8230d8b444e301f2691884980e':
  Add replace flag to a few more broadcasts.
This commit is contained in:
Dianne Hackborn
2009-12-15 10:45:34 -08:00
committed by Android Git Automerger
2 changed files with 2 additions and 0 deletions

View File

@@ -548,6 +548,7 @@ class GlobalActions implements DialogInterface.OnDismissListener, DialogInterfac
Settings.System.AIRPLANE_MODE_ON,
on ? 1 : 0);
Intent intent = new Intent(Intent.ACTION_AIRPLANE_MODE_CHANGED);
intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
intent.putExtra("state", on);
mContext.sendBroadcast(intent);
}

View File

@@ -267,6 +267,7 @@ public class KeyguardViewMediator implements KeyguardViewCallback,
mKeyguardViewProperties, mUpdateMonitor);
mUserPresentIntent = new Intent(Intent.ACTION_USER_PRESENT);
mUserPresentIntent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
}
/**