mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-04-23 11:38:30 +00:00
Disabled DTMFs tones from dialer if there is at least one call
This commit is contained in:
parent
6ed309ca1d
commit
53c1c77170
1 changed files with 3 additions and 1 deletions
|
|
@ -36,8 +36,10 @@ class DialerViewModel : ViewModel() {
|
||||||
val onKeyClick: NumpadDigitListener = object : NumpadDigitListener {
|
val onKeyClick: NumpadDigitListener = object : NumpadDigitListener {
|
||||||
override fun handleClick(key: Char) {
|
override fun handleClick(key: Char) {
|
||||||
enteredUri.value += key.toString()
|
enteredUri.value += key.toString()
|
||||||
|
if (coreContext.core.callsNb == 0) {
|
||||||
coreContext.core.playDtmf(key, 1)
|
coreContext.core.playDtmf(key, 1)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun handleLongClick(key: Char): Boolean {
|
override fun handleLongClick(key: Char): Boolean {
|
||||||
if (key == '1') {
|
if (key == '1') {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue