bluetooth: fix some QML logic bugs 21/10121/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 8 Jul 2017 01:11:56 +0000 (18:11 -0700)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Sat, 8 Jul 2017 01:11:56 +0000 (18:11 -0700)
Some conditions in the QML scripts were incorrect and wasn't
hiding the playlist correctly when AVRCP/A2DP profiles were
connected.

Change-Id: Ia7abe250bb73da74ee93e69adeb91e224f6df744
Bug-AGL: SPEC-610
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/MediaPlayer.qml
app/api/BluetoothManager.qml

index 482b30d..77538a6 100644 (file)
@@ -78,7 +78,7 @@ ApplicationWindow {
                 height: sourceSize.height * width / sourceSize.width
                 fillMode: Image.PreserveAspectCrop
                 source: player.metaData.coverArtImage ? player.metaData.coverArtImage : ''
-                visible: bluetooth.connected == false
+                visible: bluetooth.av_connected == false
             }
 
             Item {
index bb273a5..514a395 100644 (file)
@@ -85,7 +85,6 @@ WebSocket {
                     root.deviceAddress = address
                     if (!address) {
                         root.connected = false
-                        playlistview.visible = true
                     }
                 }
                 break
@@ -173,7 +172,6 @@ WebSocket {
     function connect_profiles() {
         sendSocketMessage("connect", { "value": root.deviceAddress, "uuid": a2dp_uuid })
         sendSocketMessage("connect", { "value": root.deviceAddress, "uuid": avrcp_uuid })
-        root.av_connected = true
     }
 
     function disconnect_profiles() {