Fixed country picker in assistant not working for first item
This commit is contained in:
parent
6f65fe35c3
commit
4969b6c755
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ class CountryPickerFragment(private val listener: CountryPickedListener) : Dialo
|
|||
binding.countryList.adapter = adapter
|
||||
|
||||
binding.countryList.setOnItemClickListener { _, _, position, _ ->
|
||||
if (position > 0 && position < adapter.count) {
|
||||
if (position >= 0 && position < adapter.count) {
|
||||
val dialPlan = adapter.getItem(position)
|
||||
listener.onCountryClicked(dialPlan)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue