Change editor raw contact selector to open the compact editor
* Whe editing more than one raw contact, just show the
raw contact selector with no input fields.
Eventually we'll be displaying the raw contacts in
a list instead of a drop down.
* When a raw contact selector item is clicked, open
the compact editor instead of the full one.
* We do the same trickery that the full editor does
to render a single raw contact -- even though
ContactLoader loads the aggregate, we pass along
the raw contact ID in the Intent to start the compact
editor and ignore all the other raw contacts in the
RawContactDeltaList.
* The compact editor is updated to be able to render
read-only raw contacts.
Test: Tested the following editor scenarios:
1) new contact
2) edit writable raw contact
3) edit read-only raw contact (joins a new writable raw contact to it)
4) edit aggregate w/ 1 writable and 1 read-only raw contact
5) edit aggregate w/ 2 writable raw contacts
6) edit local me raw contact
7) edit local me raw contact joined with a read-only raw contact
Bug: 31088704
Change-Id: I86a7fde976af8b318c7fb3da4f74f29f08a69eef
4 files changed