fix the logic for starting a sync after the accounts changed

This commit is contained in:
Fred Quintana
2009-09-22 21:14:48 -07:00
parent 3de07024c8
commit be3bceb5b9

View File

@@ -244,7 +244,7 @@ class SyncManager implements OnAccountsUpdatedListener {
// If this was the bootup case then don't sync everything, instead only // If this was the bootup case then don't sync everything, instead only
// sync those that have an unknown syncable state, which will give them // sync those that have an unknown syncable state, which will give them
// a chance to set their syncable state. // a chance to set their syncable state.
boolean onlyThoseWithUnkownSyncableState = !justBootedUp; boolean onlyThoseWithUnkownSyncableState = justBootedUp;
scheduleSync(null, null, null, 0 /* no delay */, onlyThoseWithUnkownSyncableState); scheduleSync(null, null, null, 0 /* no delay */, onlyThoseWithUnkownSyncableState);
} }
} }