qml: bluetooth: don't display icon unless connection 27/10227/1 3.99.3 dab/3.99.3 dab_3.99.3
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 6 Jul 2017 05:31:11 +0000 (22:31 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Tue, 18 Jul 2017 15:59:42 +0000 (15:59 +0000)
Don't display the bluetooth ToggleButton unless there is a valid
avrcp/a2dp connection.

Bug-AGL: SPEC-730
Change-Id: Ifd68fd1380bef5a471aafb7687c0cefe62b68e6f
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
(cherry picked from commit ba403bb3f5c8ce49b1db5ddc51717a2fe957bafd)

app/MediaPlayer.qml

index 8eb10f3..77538a6 100644 (file)
@@ -225,7 +225,7 @@ ApplicationWindow {
                         Item { Layout.fillWidth: true }
  
                         ToggleButton {
-                              enabled: bluetooth.connected
+                              visible: bluetooth.connected
                               checked: bluetooth.av_connected
                               offImage: './images/AGL_MediaPlayer_Bluetooth_Inactive.svg'
                               onImage: './images/AGL_MediaPlayer_Bluetooth_Active.svg'