dismiss alternate email address popup on typing
@@ -23,6 +23,7 @@ import android.text.Editable;
import android.text.TextUtils;
import android.util.AttributeSet;
import android.util.Log;
+import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.View;
@@ -316,6 +317,12 @@ public class RecipientSelectView extends TokenCompleteTextView<Recipient> implem
listView.setChoiceMode(ListView.CHOICE_MODE_SINGLE);
}
+ @Override
+ public boolean onKeyDown(int keyCode, @NonNull KeyEvent event) {
+ alternatesPopup.dismiss();
+ return super.onKeyDown(keyCode, event);
+ }
+
@Override
public Loader<List<Recipient>> onCreateLoader(int id, Bundle args) {
switch (id) {
