apply the beep setting at in-call dialpad too

This commit is contained in:
tibbi 2023-01-14 10:10:26 +01:00
parent 5440c12a2a
commit a954caa68c

View File

@ -202,13 +202,11 @@ class CallManager {
fun getState() = getPrimaryCall()?.getStateCompat()
fun keypad(context: Context, char: Char) {
call?.playDtmfTone(char)
if (context.config.dialpadBeeps) {
call?.playDtmfTone(char)
Handler().postDelayed({
call?.stopDtmfTone()
}, DIALPAD_TONE_LENGTH_MS)
} else {
call?.stopDtmfTone()
}
}
}