From 00307c1344786a88432aa50f61ca32dabf99ed48 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sun, 30 Nov 2025 15:31:14 +0800 Subject: [PATCH] =?utf8?q?=E9=9B=B7=E9=B8=9F=EF=BC=9A=E4=BC=98=E5=8C=96?= =?utf8?q?=E5=B7=B2=E9=85=8D=E5=AF=B9=E7=9A=84=E8=AE=BE=E5=A4=87=E5=90=8C?= =?utf8?q?=E6=97=B6=E5=87=BA=E7=8E=B0=E5=9C=A8"=E6=88=91=E7=9A=84=E8=AE=BE?= =?utf8?q?=E5=A4=87"=E5=92=8C"=E9=99=84=E8=BF=91=E7=9A=84=E8=AE=BE?= =?utf8?q?=E5=A4=87"=E4=B8=AD=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../thunderbird/src/ThunderBirdBlueListAdapter.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueListAdapter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueListAdapter.cpp index 977a208e4..df26e5128 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueListAdapter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdBlueListAdapter.cpp @@ -224,7 +224,7 @@ void ThunderBirdBlueListAdapter::BuildDisplayList() nearbyHeader.isSelected = false; displayList_.push_back(nearbyHeader); - // 3. 添加附近的设备(未连接的) + // 3. 添加附近的设备(未连接且未配对的) for (auto& device : scanDevices) { if (nearbyCount >= MAX_NEARBY_DEVICES) { break; @@ -235,6 +235,12 @@ void ThunderBirdBlueListAdapter::BuildDisplayList() continue; } + // 跳过已在"我的设备"列表中(已配对)的设备 + if (btModel->CheckExistConnedList(device)) { + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Skip nearby device (already paired): %s", device.deviceName); + continue; + } + DeviceListItem item; item.type = DeviceItemType::DEVICE_NEARBY; item.deviceInfo = device; -- 2.17.1