DO NOT MERGE: Work around framework bug related to service start
Bug: 4450201
Change-Id: Id49fc4859726600b63a63897966860bc8dc57cda
diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java
index c096c50..9510601 100644
--- a/src/com/android/exchange/SyncManager.java
+++ b/src/com/android/exchange/SyncManager.java
@@ -1773,6 +1773,9 @@
// Run the reconciler and clean up any mismatched accounts - if we weren't running when
// accounts were deleted, it won't have been called.
runAccountReconciler();
+ // Work around framework bug in which a call to onStartCommand is not guaranteed unless
+ // there is a posted Intent
+ startService(new Intent(this, SyncManager.class));
}
}