Add SipAddress to Contacts UI. DO NOT MERGE.
Update the contacts app to display and edit the new SipAddress field.
(See https://android-git.corp.google.com/g/62672 for the corresponding
ContactsContract change.)
The details:
- Updated ViewContactActivity to display the SIP address if present,
and to handle a click by firing off a CALL_PRIVILEGED intent with
the address in a sip: URI.
(Note: this code is wildly different in master, and the automerger
is guaranteed to fail, so I'm marking this change DO NOT MERGE.
I'll apply it manually in master as a separate change.)
- Updated FallbackSource and GoogleSource to know about SipAddress.
A SIP address is displayed using a regular "phone call" icon for now,
but we'll eventually want a SIP-specific variant. (I'll separately
ask the UI dudes for that.) The SIP address field is edited using the
"email address" style IME.
Note I didn't touch the ExchangeSource class, which means that (for
Exchange-synced contacts) we just won't allow editing this field.
(Alternatively, we *could* allow the user to edit SIP addresses, and
just have them silently not synced. I'll check with the product
guys about this.)
Also cleaned up a bunch of unnecessary method overrides in
GoogleSource.java.
- Updated QuickContactWindow to handle SIP addresses just like regular
phone numbers, except that they fire off a sip: intent rather than a
tel: intent.
I still need to figure out how to make the "call SIP" icon different
from the regular "call phone" icon though.
Bug: 2942998
Change-Id: I4f67641ef134be406606a99d9f9f07baeaadbf88
6 files changed