mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-16 19:30:08 +01:00
apply the beep setting at in-call dialpad too
This commit is contained in:
parent
5440c12a2a
commit
a954caa68c
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user