1
0
mirror of https://github.com/etesync/android synced 2024-11-29 03:18:12 +00:00

Contacts Sync Manager: remove redundant address book init.

Fixes #73
This commit is contained in:
Tom Hacohen 2019-04-04 12:50:37 +01:00
parent 2f7866ce75
commit 487d330a7a

View File

@ -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!!) journal = JournalEntryManager(httpClient.okHttpClient, remote, localAddressBook.url!!)
localAddressBook.includeGroups = true
return true return true
} }