fix #499, trigger speed dialing only when there is no number written in

This commit is contained in:
tibbi 2020-02-05 19:14:49 +01:00
parent bb46c5de17
commit 1d4c652753

View File

@ -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)
}
}
}
}