From f39645ccef07a272d42b902c1558c5067ca249c3 Mon Sep 17 00:00:00 2001 From: Marc Blank Date: Wed, 18 May 2011 16:27:55 -0700 Subject: [PATCH] DO NOT MERGE: Work around framework bug related to service start Bug: 4450201 Change-Id: Id49fc4859726600b63a63897966860bc8dc57cda --- src/com/android/exchange/SyncManager.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java index c096c5077..9510601e8 100644 --- a/src/com/android/exchange/SyncManager.java +++ b/src/com/android/exchange/SyncManager.java @@ -1773,6 +1773,9 @@ public class SyncManager extends Service implements Runnable { // 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)); } }