summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2018-05-21 02:01:42 -0700
committerMatt Ranostay <matt.ranostay@konsulko.com>2018-05-22 02:16:45 +0000
commite21cbc951028ca04d0eca0ec29a375489d0ff32f (patch)
treec2812d9d13e3d7d51960185c9a49d96ac5ba502f
parent550a9bca3658852521dc6647ed0d8bd4101cf9a6 (diff)
settings: bluetooth: qml: stop device lists from scrolling
Both device lists were emitting an layoutChanged() signal on any device addition/update/removal which caused the model to refresh causing it to 'scroll' to the top. This event should only be emitted when the model is being sorted, and hence incorrect in the current call. Bug-AGL: SPEC-1385 Change-Id: I2828ad41e8bf4c9e0c83b62322b9e281e37408eb Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
-rw-r--r--app/bluetooth/Bluetooth.qml5
1 files changed, 0 insertions, 5 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml
index 46aee81..7350adb 100644
--- a/app/bluetooth/Bluetooth.qml
+++ b/app/bluetooth/Bluetooth.qml
@@ -381,7 +381,6 @@ SettingPage {
})
pairedDeviceCount = pairedDeviceCount + 1
btDeviceList.remove(i, 1)
- btDeviceList.layoutChanged()
}
else{
text=deviceConnectionAttribute(data)
@@ -389,8 +388,6 @@ SettingPage {
textToShow: " " + text
})
- btDeviceList.layoutChanged()
-
btDeviceList.get(i).deviceConnect = data.Connected
console.log(data.Connected)
}
@@ -404,8 +401,6 @@ SettingPage {
text=deviceConnectionAttribute(data)
pairedDeviceList.set(i, { textToShow: " " + text })
- pairedDeviceList.layoutChanged()
-
pairedDeviceList.get(i).deviceConnect = data.Connected
}
}