Disabled DTMFs tones from dialer if there is at least one call

This commit is contained in:
Sylvain Berfini 2020-04-05 16:16:34 +02:00
parent 6ed309ca1d
commit 53c1c77170

View file

@ -36,7 +36,9 @@ class DialerViewModel : ViewModel() {
val onKeyClick: NumpadDigitListener = object : NumpadDigitListener {
override fun handleClick(key: Char) {
enteredUri.value += key.toString()
coreContext.core.playDtmf(key, 1)
if (coreContext.core.callsNb == 0) {
coreContext.core.playDtmf(key, 1)
}
}
override fun handleLongClick(key: Char): Boolean {