summaryrefslogtreecommitdiffstats
path: root/app/bluetooth/Bluetooth.qml
diff options
context:
space:
mode:
authorJan-Simon Moeller <jsmoeller@linuxfoundation.org>2018-05-31 17:10:45 +0000
committerGerrit Code Review <gerrit@automotivelinux.org>2018-05-31 17:10:45 +0000
commit40865da672a6391da43cecb156484f3f4fe5c6a7 (patch)
treed65fe941a8339ab261fd20f7e1a53ab7935b3d29 /app/bluetooth/Bluetooth.qml
parente21cbc951028ca04d0eca0ec29a375489d0ff32f (diff)
parent773a9e0fccf6740b07aec123047fd1171a83eb78 (diff)
Merge "settings: bluetooth: qml: stop duplicate entries in lists" into eeleel_5.1.0eel/5.1.05.1.0eel
Diffstat (limited to 'app/bluetooth/Bluetooth.qml')
-rw-r--r--app/bluetooth/Bluetooth.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/bluetooth/Bluetooth.qml b/app/bluetooth/Bluetooth.qml
index 7350adb..7a63e84 100644
--- a/app/bluetooth/Bluetooth.qml
+++ b/app/bluetooth/Bluetooth.qml
@@ -76,6 +76,7 @@ SettingPage {
for (var i = 0; i < data.list.length; i++) {
var value = data.list[i]
if (value.Paired==="True") {
+ if(findPairDevice(value.Address) == -1) {
pairedDeviceList.append({
deviceAddress: value.Address,
deviceName: value.Name,
@@ -86,8 +87,10 @@ SettingPage {
textToShow: ""
})
pairedDeviceCount = pairedDeviceCount + 1
+ }
}
else
+ if (findDevice(value.Address) == -1) {
btDeviceList.append({
deviceAddress: value.Address,
deviceName: value.Name,
@@ -97,6 +100,7 @@ SettingPage {
connectHFP: value.HFPConnected,
textToShow: ""
})
+ }
}
}