You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As discussed in #301, read-only Data rows can only be updated when ContactsContract.CALLER_IS_SYNCADAPTER is set to true for the update operation. With the addition of #306, users will be able to insert read-only Data rows. However, they (sync adapters) will not be able to update them.
Solution
Add a property called isSyncAdapter to the contacts.core.Contacts API that can be set during API instance initialization. Use it to set the value of ContactsContract.CALLER_IS_SYNCADAPTER in all CRUD APIs provided in the library.
Problem
As discussed in #301, read-only Data rows can only be updated when
ContactsContract.CALLER_IS_SYNCADAPTER
is set to true for the update operation. With the addition of #306, users will be able to insert read-only Data rows. However, they (sync adapters) will not be able to update them.Solution
Add a property called
isSyncAdapter
to thecontacts.core.Contacts
API that can be set during API instance initialization. Use it to set the value ofContactsContract.CALLER_IS_SYNCADAPTER
in all CRUD APIs provided in the library.setup-contacts-api.md
,about-api-entities.md
)callerIsSyncAdapter: Boolean
parameter #313gh-page
branchThe text was updated successfully, but these errors were encountered: