|
|
|
@ -79,6 +79,9 @@ public class CalendarsSyncAdapterService extends SyncAdapterService {
|
|
|
|
|
CalendarSyncManager syncManager = new CalendarSyncManager(getContext(), account, settings, extras, authority, syncResult, calendar, principal);
|
|
|
|
|
syncManager.performSync();
|
|
|
|
|
}
|
|
|
|
|
} catch (Exceptions.ServiceUnavailableException e) {
|
|
|
|
|
syncResult.stats.numIoExceptions++;
|
|
|
|
|
syncResult.delayUntil = (e.retryAfter > 0) ? e.retryAfter : Constants.DEFAULT_RETRY_DELAY;
|
|
|
|
|
} catch (Exception | OutOfMemoryError e) {
|
|
|
|
|
if (e instanceof CalendarStorageException || e instanceof SQLiteException) {
|
|
|
|
|
App.log.log(Level.SEVERE, "Couldn't prepare local calendars", e);
|
|
|
|
|