mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
Avoid calling startTone repeatedly
This commit is contained in:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user