mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-04-02 12:40:25 +02: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 getState() = getPrimaryCall()?.getStateCompat()
|
||||||
|
|
||||||
fun keypad(context: Context, char: Char) {
|
fun keypad(context: Context, char: Char) {
|
||||||
call?.playDtmfTone(char)
|
|
||||||
if (context.config.dialpadBeeps) {
|
if (context.config.dialpadBeeps) {
|
||||||
|
call?.playDtmfTone(char)
|
||||||
Handler().postDelayed({
|
Handler().postDelayed({
|
||||||
call?.stopDtmfTone()
|
call?.stopDtmfTone()
|
||||||
}, DIALPAD_TONE_LENGTH_MS)
|
}, DIALPAD_TONE_LENGTH_MS)
|
||||||
} else {
|
|
||||||
call?.stopDtmfTone()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user