summaryrefslogtreecommitdiffstats
path: root/core/java/android/content/SyncManager.java
diff options
context:
space:
mode:
authorDianne Hackborn <hackbod@google.com>2009-09-02 13:26:28 -0700
committerDianne Hackborn <hackbod@google.com>2009-09-02 17:39:54 -0700
commita34f1ad7c3a68d971e6332aa2fb1c16d083920b3 (patch)
tree1bfa09439ef3130cb5dacde84fc8dce44dac1a70 /core/java/android/content/SyncManager.java
parent75f1d43b64cbf4b68ad62919a0c58907933ccd59 (diff)
downloadframeworks_base-a34f1ad7c3a68d971e6332aa2fb1c16d083920b3.zip
frameworks_base-a34f1ad7c3a68d971e6332aa2fb1c16d083920b3.tar.gz
frameworks_base-a34f1ad7c3a68d971e6332aa2fb1c16d083920b3.tar.bz2
Fiddle system boot ordering.
This makes the system a little more careful to not start third party code until it is ready to. Also fix a little bug in SyncManager that would cause it to crash during boot if sync was in a failure state. Change-Id: Ib2d287d8441d155d393fe740a5f98690895fd358
Diffstat (limited to 'core/java/android/content/SyncManager.java')
-rw-r--r--core/java/android/content/SyncManager.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/content/SyncManager.java b/core/java/android/content/SyncManager.java
index 1f3fbf6..5ffe962 100644
--- a/core/java/android/content/SyncManager.java
+++ b/core/java/android/content/SyncManager.java
@@ -2035,6 +2035,7 @@ class SyncManager implements OnAccountsUpdatedListener {
private void sendSyncStateIntent() {
Intent syncStateIntent = new Intent(Intent.ACTION_SYNC_STATE_CHANGED);
+ syncStateIntent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
syncStateIntent.putExtra("active", mNeedSyncActiveNotification);
syncStateIntent.putExtra("failing", mNeedSyncErrorNotification);
mContext.sendBroadcast(syncStateIntent);