From 206e61085e6a8da8baaf5131137dcc94d6017933 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 14 Mar 2019 22:45:25 +0100 Subject: [PATCH] be more smart about going to next attendee on confirmation --- .../simplemobiletools/calendar/pro/activities/EventActivity.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 34a1ee5e3..6c3a11b01 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -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() }