summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2019-03-25 12:18:03 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2019-03-25 12:18:03 +0000
commit6edc3382272c1e16a9febff902f698acd39dba01 (patch)
treeddd440a20604e444ea76395d3366c6e54db1875e
parentff41d114eb9e1709dafc47b7bab1d7d8c55b71d4 (diff)
parent0ad8a8b3141fe9450bbf7e2a3917932c813a7210 (diff)
Merge "phone: qml: enable/disable dialpad on hfp status events"
-rw-r--r--app/Dialer.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/Dialer.qml b/app/Dialer.qml
index 248bc6c..11c190e 100644
--- a/app/Dialer.qml
+++ b/app/Dialer.qml
@@ -34,8 +34,11 @@ Item {
Connections {
target: telephony
- onConnectedChanged: {
- // FIXME: keep dialpad inactive until connected
+ onOnlineChanged: {
+ dialpad.enabled = connected
+ if (!connected) {
+ number.text = ''
+ }
}
onCallStateChanged: {
@@ -82,6 +85,7 @@ Item {
anchors.topMargin: 50
anchors.bottomMargin: 50
spacing: 20
+ id: dialpad
ColumnLayout {
Layout.alignment: Qt.AlignHCenter
Label {