diff options
| author | Dianne Hackborn <hackbod@google.com> | 2009-12-08 19:45:14 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2009-12-14 15:03:35 -0800 |
| commit | 1c633fc89bae9bf0af6fe643ac7ad2e744f27bed (patch) | |
| tree | ba72742fc17755ec69996ad3dd6a6f82f445a2ab /services/java/com/android/server/InputMethodManagerService.java | |
| parent | 19553241513bd2ee2610026ebbce8c45c7ae0dbc (diff) | |
Implement API to have new broadcasts replace existing broadcasts.
Use this in various places where it should serve no purpose to deliver
both broadcasts. This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
Diffstat (limited to 'services/java/com/android/server/InputMethodManagerService.java')
| -rw-r--r-- | services/java/com/android/server/InputMethodManagerService.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/java/com/android/server/InputMethodManagerService.java b/services/java/com/android/server/InputMethodManagerService.java index a64cb1acd1a2..405dc2e34ca0 100644 --- a/services/java/com/android/server/InputMethodManagerService.java +++ b/services/java/com/android/server/InputMethodManagerService.java @@ -949,6 +949,7 @@ public class InputMethodManagerService extends IInputMethodManager.Stub if (ActivityManagerNative.isSystemReady()) { Intent intent = new Intent(Intent.ACTION_INPUT_METHOD_CHANGED); + intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING); intent.putExtra("input_method_id", id); mContext.sendBroadcast(intent); } |
