From 8a02e0caa4f39c92db8557872750bf47db86f40a Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Sun, 3 Dec 2017 23:15:29 -0800 Subject: mediaplayer: qml: fix issue with bluetooth icon Bluetooth icon wasn't visible on connections that were started before Mediaplayer application UI was loaded. Bug-AGL: SPEC-1158 Change-Id: Iafd890968300cc5cf8ee779513a572314c189a2a Signed-off-by: Matt Ranostay --- app/MediaPlayer.qml | 1 - app/api/BluetoothManager.qml | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/MediaPlayer.qml b/app/MediaPlayer.qml index a297162..1c7c5a8 100644 --- a/app/MediaPlayer.qml +++ b/app/MediaPlayer.qml @@ -41,7 +41,6 @@ ApplicationWindow { repeat: true onTriggered: { bluetooth.position = bluetooth.position + 250 - slider.value = bluetooth.position } } diff --git a/app/api/BluetoothManager.qml b/app/api/BluetoothManager.qml index f102fe2..63e3e60 100644 --- a/app/api/BluetoothManager.qml +++ b/app/api/BluetoothManager.qml @@ -101,6 +101,9 @@ WebSocket { var data = payload.data var metadata = data.Metadata + if (root.deviceAddress == "") + root.deviceAddress = data.Address + if (root.deviceAddress != data.Address) break @@ -109,6 +112,7 @@ WebSocket { sendSocketMessage("discovery_result", 'None') break } + root.connected = data.Connected == "True" root.av_connected = data.AVPConnected == "True" if ('Position' in metadata) { -- cgit 1.2.3-korg