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

Bug: 4450201
Change-Id: Id49fc4859726600b63a63897966860bc8dc57cda
This commit is contained in:
Marc Blank 2011-05-18 16:27:55 -07:00
parent c55e2c8847
commit f39645ccef

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