mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-03-24 07:10:23 +01:00
Avoid calling startTone repeatedly
This commit is contained in:
parent
0ddaaceed1
commit
d2c0d71487
@ -304,7 +304,7 @@ class DialpadActivity : SimpleActivity() {
|
||||
|
||||
private fun stopDialpadTone(char: Char) {
|
||||
if (config.dialpadBeeps) {
|
||||
pressedKeys.remove(char)
|
||||
if (!pressedKeys.remove(char)) return
|
||||
if (pressedKeys.isEmpty()) {
|
||||
toneGeneratorHelper?.stopTone()
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user