1
0
mirror of https://github.com/etesync/android synced 2024-12-23 15:18:14 +00:00

LocalAddressBook: update according to vcard4android changes.

This commit is contained in:
Tom Hacohen 2019-08-23 09:35:41 +01:00
parent f6638e7584
commit 36a44ba339

View File

@ -136,7 +136,7 @@ class LocalAddressBook(
?: throw IllegalStateException("Address book has no URL")
set(url) = AccountManager.get(context).setUserData(account, USER_DATA_URL, url)
var readOnly: Boolean
override var readOnly: Boolean
get() = AccountManager.get(context).getUserData(account, USER_DATA_READ_ONLY) != null
set(readOnly) = AccountManager.get(context).setUserData(account, USER_DATA_READ_ONLY, if (readOnly) "1" else null)