summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/DockObserver.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-12-08 19:45:14 -0800
committerDianne Hackborn <hackbod@google.com>2009-12-14 15:03:35 -0800
commit1c633fc89bae9bf0af6fe643ac7ad2e744f27bed (patch)
treeba72742fc17755ec69996ad3dd6a6f82f445a2ab /services/java/com/android/server/DockObserver.java
parent19553241513bd2ee2610026ebbce8c45c7ae0dbc (diff)
downloadframeworks_base-1c633fc89bae9bf0af6fe643ac7ad2e744f27bed.zip
frameworks_base-1c633fc89bae9bf0af6fe643ac7ad2e744f27bed.tar.gz
frameworks_base-1c633fc89bae9bf0af6fe643ac7ad2e744f27bed.tar.bz2
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/DockObserver.java')
-rw-r--r--services/java/com/android/server/DockObserver.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/java/com/android/server/DockObserver.java b/services/java/com/android/server/DockObserver.java
index 2fff54c..6ea50c7 100644
--- a/services/java/com/android/server/DockObserver.java
+++ b/services/java/com/android/server/DockObserver.java
@@ -179,6 +179,7 @@ class DockObserver extends UEventObserver {
}
// Pack up the values and broadcast them to everyone
Intent intent = new Intent(Intent.ACTION_DOCK_EVENT);
+ intent.addFlags(Intent.FLAG_RECEIVER_REPLACE_PENDING);
intent.putExtra(Intent.EXTRA_DOCK_STATE, mDockState);
// Check if this is Bluetooth Dock