QML: Bluetooth: fix initial paired devices list 99/12099/1 4.99.3 eel/4.99.3 eel_4.99.3
authorMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 23 Nov 2017 03:34:09 +0000 (19:34 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Thu, 23 Nov 2017 03:34:35 +0000 (19:34 -0800)
Paired device count was being set to zero after getting initial
list from the bluetooth service.

Bug-AGL: SPEC-1123
Change-Id: If4d70e45bcb2b3fcbde3f4ace0d251601e38c157
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/bluetooth/Bluetooth.qml

index 04c9284..cef0578 100644 (file)
@@ -144,8 +144,8 @@ SettingPage {
     onCheckedChanged: {
         console.log("Bluetooth set to", checked)
         if (checked == true) {
-            initBTlist()
             pairedDeviceCount=0
+            initBTlist()
             btOn=true
             request(btAPIpath + 'power?value=1', function (o) {
                 // log the json response