Search in sources :

Example 1 with AlternateRecipientAdapter

use of com.fsck.k9.activity.AlternateRecipientAdapter in project k-9 by k9mail.

the class RecipientSelectView method initView.

private void initView(Context context) {
    // TODO: validator?
    alternatesPopup = new ListPopupWindow(context);
    alternatesAdapter = new AlternateRecipientAdapter(context, this);
    alternatesPopup.setAdapter(alternatesAdapter);
    // don't allow duplicates, based on equality of recipient objects, which is e-mail addresses
    allowDuplicates(false);
    // if a token is completed, pick an entry based on best guess.
    // Note that we override performCompletion, so this doesn't actually do anything
    performBestGuess(true);
    adapter = new RecipientAdapter(context);
    setAdapter(adapter);
    setLongClickable(true);
}
Also used : ListPopupWindow(android.widget.ListPopupWindow) AlternateRecipientAdapter(com.fsck.k9.activity.AlternateRecipientAdapter) RecipientAdapter(com.fsck.k9.activity.compose.RecipientAdapter) AlternateRecipientAdapter(com.fsck.k9.activity.AlternateRecipientAdapter)

Aggregations

ListPopupWindow (android.widget.ListPopupWindow)1 AlternateRecipientAdapter (com.fsck.k9.activity.AlternateRecipientAdapter)1 RecipientAdapter (com.fsck.k9.activity.compose.RecipientAdapter)1