diff options
author | Jan-Simon Moeller <jsmoeller@linuxfoundation.org> | 2019-03-25 12:18:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-03-25 12:18:03 +0000 |
commit | 6edc3382272c1e16a9febff902f698acd39dba01 (patch) | |
tree | ddd440a20604e444ea76395d3366c6e54db1875e /app | |
parent | ff41d114eb9e1709dafc47b7bab1d7d8c55b71d4 (diff) | |
parent | 0ad8a8b3141fe9450bbf7e2a3917932c813a7210 (diff) |
Merge "phone: qml: enable/disable dialpad on hfp status events"
Diffstat (limited to 'app')
-rw-r--r-- | app/Dialer.qml | 8 |
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 { |