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);
}
Aggregations