Search in sources :

Example 1 with RecipientAdapter

use of com.android.calendar.RecipientAdapter in project Etar-Calendar by Etar-Group.

the class EditEventView method initMultiAutoCompleteTextView.

// From com.google.android.gm.ComposeActivity
private MultiAutoCompleteTextView initMultiAutoCompleteTextView(RecipientEditTextView list) {
    if (ChipsUtil.supportsChipsUi()) {
        mAddressAdapter = new RecipientAdapter(mActivity);
        list.setAdapter((BaseRecipientAdapter) mAddressAdapter);
        list.setOnFocusListShrinkRecipients(false);
    } else {
        mAddressAdapter = new EmailAddressAdapter(mActivity);
        list.setAdapter((EmailAddressAdapter) mAddressAdapter);
    }
    list.setTokenizer(new Rfc822Tokenizer());
    list.setValidator(mEmailValidator);
    // NOTE: assumes no other filters are set
    list.setFilters(sRecipientFilters);
    return list;
}
Also used : Rfc822Tokenizer(android.text.util.Rfc822Tokenizer) RecipientAdapter(com.android.calendar.RecipientAdapter) BaseRecipientAdapter(com.android.ex.chips.BaseRecipientAdapter) EmailAddressAdapter(com.android.calendar.EmailAddressAdapter)

Aggregations

Rfc822Tokenizer (android.text.util.Rfc822Tokenizer)1 EmailAddressAdapter (com.android.calendar.EmailAddressAdapter)1 RecipientAdapter (com.android.calendar.RecipientAdapter)1 BaseRecipientAdapter (com.android.ex.chips.BaseRecipientAdapter)1