mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-25 07:50:56 +01:00
be more smart about going to next attendee on confirmation
This commit is contained in:
parent
874056dfca
commit
206e61085e
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user