From 487d330a7a4b48037b598e70724645114a1b323b Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Thu, 4 Apr 2019 12:50:37 +0100 Subject: [PATCH] Contacts Sync Manager: remove redundant address book init. Fixes #73 --- .../syncadapter/syncadapter/ContactsSyncManager.kt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncManager.kt b/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncManager.kt index d33641d3..ddb047ba 100644 --- a/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncManager.kt +++ b/app/src/main/java/com/etesync/syncadapter/syncadapter/ContactsSyncManager.kt @@ -75,16 +75,8 @@ constructor(context: Context, account: Account, settings: AccountSettings, extra } } - // set up Contacts Provider Settings - val values = ContentValues(2) - values.put(ContactsContract.Settings.SHOULD_SYNC, 1) - values.put(ContactsContract.Settings.UNGROUPED_VISIBLE, 1) - localAddressBook.settings.putAll(values) - journal = JournalEntryManager(httpClient.okHttpClient, remote, localAddressBook.url!!) - localAddressBook.includeGroups = true - return true }