Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a09f26a2 authored by cketti's avatar cketti
Browse files

Renamed getEmailFromContactPicker() to better reflect what it does

parent 08e54cf4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1797,7 +1797,7 @@ public class MessageCompose extends K9Activity implements OnClickListener, OnFoc
        case CONTACT_PICKER_TO:
        case CONTACT_PICKER_CC:
        case CONTACT_PICKER_BCC:
            ContactItem contact = mContacts.getEmailFromContactPicker(data);
            ContactItem contact = mContacts.extractInfoFromContactPickerIntent(data);
            if (contact == null) {
                Toast.makeText(this, getString(R.string.error_contact_address_not_found), Toast.LENGTH_LONG).show();
                return;
+1 −1
Original line number Diff line number Diff line
@@ -183,7 +183,7 @@ public abstract class Contacts {
     * @return A {@link ContactItem} instance describing the picked contact. Or {@code null} if the
     *         contact doesn't have any email addresses.
     */
    public abstract ContactItem getEmailFromContactPicker(final Intent intent);
    public abstract ContactItem extractInfoFromContactPickerIntent(final Intent intent);

    /**
     * Does the device actually have a Contacts application suitable for
+1 −1
Original line number Diff line number Diff line
@@ -193,7 +193,7 @@ public class ContactsSdk5 extends com.fsck.k9.helper.Contacts {
    }

    @Override
    public ContactItem getEmailFromContactPicker(final Intent data) {
    public ContactItem extractInfoFromContactPickerIntent(final Intent data) {
        Cursor cursor = null;
        ArrayList<String> email = new ArrayList<String>();