diff options
author | Costin Manolache <costin@google.com> | 2009-09-22 14:41:46 -0700 |
---|---|---|
committer | Costin Manolache <costin@google.com> | 2009-09-22 14:41:46 -0700 |
commit | 5ed64cd06ce308e91a5ab74e51bcea5fba9a3860 (patch) | |
tree | 52f286a71ce3c4e3edfeb22a61578107fd3f0451 /core/java/android/content/SyncStorageEngine.java | |
parent | 0676690091b348d939db0340c3a0d888683c1abb (diff) | |
download | frameworks_base-5ed64cd06ce308e91a5ab74e51bcea5fba9a3860.zip frameworks_base-5ed64cd06ce308e91a5ab74e51bcea5fba9a3860.tar.gz frameworks_base-5ed64cd06ce308e91a5ab74e51bcea5fba9a3860.tar.bz2 |
Keep track of 'initial' sync state in SyncStatusInfo
Diffstat (limited to 'core/java/android/content/SyncStorageEngine.java')
-rw-r--r-- | core/java/android/content/SyncStorageEngine.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/content/SyncStorageEngine.java b/core/java/android/content/SyncStorageEngine.java index 6e312d2..fbdd5ae 100644 --- a/core/java/android/content/SyncStorageEngine.java +++ b/core/java/android/content/SyncStorageEngine.java @@ -511,6 +511,9 @@ public class SyncStorageEngine extends Handler { SyncStatusInfo status = getOrCreateSyncStatusLocked(authority.ident); status.pending = true; + status.initialize = op.extras != null && + op.extras.containsKey(ContentResolver.SYNC_EXTRAS_INITIALIZE) && + op.extras.getBoolean(ContentResolver.SYNC_EXTRAS_INITIALIZE); } reportChange(ContentResolver.SYNC_OBSERVER_TYPE_PENDING); |