Beispiel #1
0
 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);
     }
   }
 }
Beispiel #2
0
 public MessageHeader(Context context, AttributeSet attrs) {
   super(context, attrs);
   mContext = context;
   mContacts = Contacts.getInstance(mContext);
 }