1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-26 01:28:50 -05:00

Renamed getEmailFromContactPicker() to better reflect what it does

This commit is contained in:
cketti 2012-04-09 01:04:59 +02:00
parent 08e54cf44b
commit a09f26a227
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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

View File

@ -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>();