Skip to content

Commit

Permalink
Hide keyboard when manual entry button is clicked
Browse files Browse the repository at this point in the history
COAND-873
  • Loading branch information
OscarSpruit committed Jan 22, 2025
1 parent b324a5f commit 3daa161
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,17 +173,15 @@ class AddressLookupView @JvmOverloads constructor(
}

private fun initManualEntryFields() {
binding.textViewManualEntryError.setOnClickListener {
val listener = OnClickListener {
addressLookupDelegate.onManualEntryModeSelected()
removeFocusFromSearch()
}
binding.textViewManualEntryError.setOnClickListener(listener)

binding.textViewManualEntryInitial.setOnClickListener {
addressLookupDelegate.onManualEntryModeSelected()
}
binding.textViewManualEntryInitial.setOnClickListener(listener)

binding.buttonManualEntry.setOnClickListener {
addressLookupDelegate.onManualEntryModeSelected()
}
binding.buttonManualEntry.setOnClickListener(listener)
}

private fun initSubmitAddressButton() {
Expand Down

0 comments on commit 3daa161

Please sign in to comment.