am f39645cc: DO NOT MERGE: Work around framework bug related to service start

* commit 'f39645ccef07a272d42b902c1558c5067ca249c3':
  DO NOT MERGE: Work around framework bug related to service start
This commit is contained in:
Marc Blank 2011-05-19 10:56:07 -07:00 committed by Android Git Automerger
commit 5d9f9a41b2

View File

@ -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));
}
}