fix #149: pasting text into search bar did not work

This commit is contained in:
Johan von Forstner
2021-12-26 19:46:45 +01:00
parent 57ba8db799
commit c55720edc7

View File

@@ -422,6 +422,7 @@ class MapFragment : Fragment(), OnMapReadyCallback, MapsActivity.FragmentCallbac
binding.search.onFocusChangeListener = View.OnFocusChangeListener { v, hasFocus ->
if (hasFocus) {
binding.search.keyListener = searchKeyListener
binding.search.text = binding.search.text // workaround to fix copy/paste
} else {
binding.search.keyListener = null
}