diff options
author | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-03-13 18:25:45 -0700 |
---|---|---|
committer | Matt Ranostay <matt.ranostay@konsulko.com> | 2019-04-04 16:11:38 -0700 |
commit | a275b5b155f281044241a2284824b5a4787c3de4 (patch) | |
tree | e3ba57750d6dc0d34e36f3a5caec41f785facd6e /app/Dialer.qml | |
parent | b9973e817ff663e89620f635a103be3f08f14b26 (diff) |
phone: qml: enable/disable dialpad on hfp status eventsguppy_7.0.4guppy_7.0.3guppy_7.0.2guppy_7.0.1guppy/7.0.4guppy/7.0.3guppy/7.0.2guppy/7.0.17.0.47.0.37.0.27.0.1guppy
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/Dialer.qml')
-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 { |