Open fgubler opened 1 year ago
Is there any chance of that? :-)
I am having troubles understanding what you are trying to do.
If i am getting this right, you are asking which contacts should you allow the users to add to create groups you create. What stops you from allowing them to create groups with any account on the device?
Sorry for the unclear description :-)
Does that make more sense?
This is related to my previous feature-request (thanks again for that) about contact-groups and their associated accounts.
My scenario is as follows: I load an existing contact from Android using the ContactStore. Now I would like to add a group-membership. How do I know which ones to offer to the user? If the user wants to create a new one, how do I know in which account I need to store it?
All of that works for creating a new account, ofc, because there I (or the user) need to specify in which account to store the contact. But for an existing contact, that information is missing.
If I understood it correctly, there is no "one single" account on the Contact class because you potentially aggregate the information over multiple accounts. Is it possible to identify something like a "main" account? Or providing a list of the involved accounts (in that case I could do a best-effort guess and e.g. prefer a google account over whatsapp or something like that)?