fix #499, trigger speed dialing only when there is no number written in
This commit is contained in:
parent
bb46c5de17
commit
1d4c652753
1 changed files with 5 additions and 3 deletions
|
|
@ -232,9 +232,11 @@ class DialpadActivity : SimpleActivity() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun speedDial(id: Int) {
|
private fun speedDial(id: Int) {
|
||||||
val speedDial = speedDialValues.firstOrNull { it.id == id }
|
if (dialpad_input.value.isEmpty()) {
|
||||||
if (speedDial?.isValid() == true) {
|
val speedDial = speedDialValues.firstOrNull { it.id == id }
|
||||||
initCall(speedDial.number)
|
if (speedDial?.isValid() == true) {
|
||||||
|
initCall(speedDial.number)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue