Skip to content

Commit 1d4c652

Browse files
committed
fix #499, trigger speed dialing only when there is no number written in
1 parent bb46c5d commit 1d4c652

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/src/main/kotlin/com/simplemobiletools/contacts/pro/activities/DialpadActivity.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,11 @@ class DialpadActivity : SimpleActivity() {
232232
}
233233

234234
private fun speedDial(id: Int) {
235-
val speedDial = speedDialValues.firstOrNull { it.id == id }
236-
if (speedDial?.isValid() == true) {
237-
initCall(speedDial.number)
235+
if (dialpad_input.value.isEmpty()) {
236+
val speedDial = speedDialValues.firstOrNull { it.id == id }
237+
if (speedDial?.isValid() == true) {
238+
initCall(speedDial.number)
239+
}
238240
}
239241
}
240242
}

0 commit comments

Comments
 (0)