From 42f1dee080b2ff5da50d694c75594debe1dda769 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Sat, 28 Sep 2024 17:05:53 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3#671,=E8=93=9D=E7=89=99?= =?utf8?q?=E8=AE=BE=E5=A4=87=E5=90=8D=E7=A7=B0=E5=8F=AA=E6=98=BE=E7=A4=BA?= =?utf8?q?=E4=B8=80=E4=B8=AA=E6=97=B6=E9=9C=80=E8=A6=81=E5=9B=BA=E5=AE=9A?= =?utf8?q?=E4=B8=8D=E8=83=BD=EF=BC=8C=E5=8E=BB=E6=8E=89=E4=B8=8B=E9=9D=A2?= =?utf8?q?=E6=A8=AA=E7=BA=BFbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp index 69adb8a56..fc5b95f96 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/bluetooth/src/BluetoothItemView.cpp @@ -101,8 +101,9 @@ namespace OHOS } } WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "index = %d", GetViewIndex()); - List &bluetoothCaseList = BluetoothModel::GetInstance()->GetConnedDevicesCase(); - if (GetViewIndex() == bluetoothCaseList.Size() - 1) + List &btConnedDevicesList_ = BluetoothModel::GetInstance()->GetConnedDevicesCase(); + std::list &btScansDevicesList_ = BluetoothModel::GetInstance()->GetCase(); + if (GetViewIndex() == btConnedDevicesList_.Size() - 1 || GetViewIndex() == btScansDevicesList_.size() - 1) { lineImage.SetVisible(false); } -- 2.17.1