private void onAddSenderToContacts() { if (mMessage != null) { try { final Address senderEmail = mMessage.getFrom()[0]; mContacts.createContact(senderEmail); } catch (Exception e) { Log.e(K9.LOG_TAG, "Couldn't create contact", e); } } }
public MessageHeader(Context context, AttributeSet attrs) { super(context, attrs); mContext = context; mContacts = Contacts.getInstance(mContext); }