More DTMF focus and soft keyboard improvements

This commit is contained in:
Juha Heinanen
2024-10-15 11:16:39 +03:00
parent 5269f396d7
commit 3b4cea642e
@@ -475,9 +475,13 @@ class MainActivity : AppCompatActivity() {
} }
} }
dtmf.setOnFocusChangeListener { _, hasFocus -> dtmf.setOnFocusChangeListener { view, hasFocus ->
if (dtmf.isEnabled && !hasFocus) if (hasFocus) {
dtmf.requestFocus() imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
}
}
dtmf.setOnClickListener { view ->
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
} }
voicemailButton.setOnClickListener { voicemailButton.setOnClickListener {