From 1d4c6527539a601cdebdb8b2a1f766a6864e1f12 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 5 Feb 2020 19:14:49 +0100 Subject: [PATCH] fix #499, trigger speed dialing only when there is no number written in --- .../contacts/pro/activities/DialpadActivity.kt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialpadActivity.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialpadActivity.kt index 303605f6..ed5bb0a3 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialpadActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialpadActivity.kt @@ -232,9 +232,11 @@ class DialpadActivity : SimpleActivity() { } private fun speedDial(id: Int) { - val speedDial = speedDialValues.firstOrNull { it.id == id } - if (speedDial?.isValid() == true) { - initCall(speedDial.number) + if (dialpad_input.value.isEmpty()) { + val speedDial = speedDialValues.firstOrNull { it.id == id } + if (speedDial?.isValid() == true) { + initCall(speedDial.number) + } } } }