Hotfix: properly select recipient

This commit is contained in:
Christian Basler 2018-02-25 23:35:03 +01:00
parent 2bddd0f256
commit ad3af929d7
2 changed files with 3 additions and 2 deletions

View File

@ -20,7 +20,7 @@ android {
applicationId "ch.dissem.apps.${appName.toLowerCase()}"
minSdkVersion 19
targetSdkVersion 27
versionCode 22
versionCode 23
versionName "1.0-rc1"
multiDexEnabled true
}

View File

@ -132,7 +132,8 @@ class ComposeMessageFragment : Fragment() {
)
recipient_input.setAdapter(adapter)
recipient_input.onItemClickListener =
AdapterView.OnItemClickListener { _, _, pos, _ -> adapter.getItem(pos) }
AdapterView.OnItemClickListener { _, _, pos, _ -> recipient = adapter.getItem(pos) }
recipient_input.onItemSelectedListener =
object : AdapterView.OnItemSelectedListener {
override fun onItemSelected(