be more smart about going to next attendee on confirmation

This commit is contained in:
tibbi 2019-03-14 22:45:25 +01:00
parent 874056dfca
commit 206e61085e

View File

@ -1186,12 +1186,13 @@ class EventActivity : SimpleActivity() {
val adapter = AutoCompleteTextViewAdapter(this, mAvailableContacts)
autoCompleteView.setAdapter(adapter)
autoCompleteView.imeOptions = EditorInfo.IME_ACTION_NEXT
autoCompleteView.setOnItemClickListener { parent, view, position, id ->
val currAttendees = (autoCompleteView.adapter as AutoCompleteTextViewAdapter).resultList
val selectedAttendee = currAttendees[position]
hideKeyboard(autoCompleteView)
autoCompleteView.beGone()
autoCompleteView.focusSearch(View.FOCUS_DOWN)?.requestFocus()
selectedAttendeeName.text = selectedAttendee.getPublicName()
selectedAttendeeHolder.beVisible()
}