DO NOT MERGE: Work around framework bug related to service start
Bug: 4450201 Change-Id: Id49fc4859726600b63a63897966860bc8dc57cda
This commit is contained in:
parent
c55e2c8847
commit
f39645ccef
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user