summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2019-03-13 18:25:45 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2019-03-24 16:57:58 -0700
commit0ad8a8b3141fe9450bbf7e2a3917932c813a7210 (patch)
tree3f3ce163a26179650bf0796bdec2ad2150c54d62
parentf55e5049ee5b0b91241a3172f47d5c0941e07d89 (diff)
phone: qml: enable/disable dialpad on hfp status events
Enable/disable the dialpad based on the handsfree profile connection status. Note this has nothing to do with if an active call is connected. Bug-AGL: SPEC-2257 Change-Id: Ibaedab7c6b9a4151fdded73a07a04de9c554e2f0 Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-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 {