Automatically show DTMF soft keyboard when call is connected

This commit is contained in:
Juha Heinanen
2020-12-14 14:48:14 +02:00
parent b68c7bf0f7
commit a50a4c1e11

View File

@ -1488,6 +1488,7 @@ class MainActivity : AppCompatActivity() {
dtmf.visibility = View.VISIBLE
dtmf.isEnabled = true
dtmf.requestFocus()
imm.showSoftInput(dtmf, InputMethodManager.SHOW_IMPLICIT)
if (dtmfWatcher != null) dtmf.removeTextChangedListener(dtmfWatcher)
dtmfWatcher = call.dtmfWatcher
dtmf.addTextChangedListener(dtmfWatcher)