From: Matt Ranostay Date: Mon, 21 May 2018 09:01:42 +0000 (-0700) Subject: settings: bluetooth: qml: stop device lists from scrolling X-Git-Tag: flounder/5.99.1^0 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=9f54d40746e2a09781e2a197cea1822bbd0d25ad;p=apps%2Fsettings.git 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 --- diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml index 3a65725..7a63e84 100644 --- a/app/bluetooth/Bluetooth.qml +++ b/app/bluetooth/Bluetooth.qml @@ -385,7 +385,6 @@ SettingPage { }) pairedDeviceCount = pairedDeviceCount + 1 btDeviceList.remove(i, 1) - btDeviceList.layoutChanged() } else{ text=deviceConnectionAttribute(data) @@ -393,8 +392,6 @@ SettingPage { textToShow: " " + text }) - btDeviceList.layoutChanged() - btDeviceList.get(i).deviceConnect = data.Connected console.log(data.Connected) } @@ -408,8 +405,6 @@ SettingPage { text=deviceConnectionAttribute(data) pairedDeviceList.set(i, { textToShow: " " + text }) - pairedDeviceList.layoutChanged() - pairedDeviceList.get(i).deviceConnect = data.Connected } }