Search in sources :

Example 1 with ContactAccessor

use of org.thoughtcrime.securesms.contacts.ContactAccessor in project Signal-Android by WhisperSystems.

the class ConversationActivity method addAttachmentContactInfo.

private void addAttachmentContactInfo(Uri contactUri) {
    ContactAccessor contactDataList = ContactAccessor.getInstance();
    ContactData contactData = contactDataList.getContactData(this, contactUri);
    if (contactData.numbers.size() == 1)
        composeText.append(contactData.numbers.get(0).number);
    else if (contactData.numbers.size() > 1)
        selectContactInfo(contactData);
}
Also used : ContactData(org.thoughtcrime.securesms.contacts.ContactAccessor.ContactData) ContactAccessor(org.thoughtcrime.securesms.contacts.ContactAccessor)

Aggregations

ContactAccessor (org.thoughtcrime.securesms.contacts.ContactAccessor)1 ContactData (org.thoughtcrime.securesms.contacts.ContactAccessor.ContactData)1