summaryrefslogtreecommitdiffstats
path: root/app
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-04-04 16:11:38 -0700
commita275b5b155f281044241a2284824b5a4787c3de4 (patch)
treee3ba57750d6dc0d34e36f3a5caec41f785facd6e /app
parentb9973e817ff663e89620f635a103be3f08f14b26 (diff)
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>
Diffstat (limited to 'app')
-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 {