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

View File

@ -475,9 +475,13 @@ class MainActivity : AppCompatActivity() {
}
}
dtmf.setOnFocusChangeListener { _, hasFocus ->
if (dtmf.isEnabled && !hasFocus)
dtmf.requestFocus()
dtmf.setOnFocusChangeListener { view, hasFocus ->
if (hasFocus) {
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
}
}
dtmf.setOnClickListener { view ->
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT)
}
voicemailButton.setOnClickListener {