From: luozheng <1732036298@qq.com> Date: Sat, 28 Sep 2024 09:05:53 +0000 (+0800) Subject: 解决#671,蓝牙设备名称只显示一个时需要固定不能,去掉下面横线bug X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=42f1dee080b2ff5da50d694c75594debe1dda769;p=mirrors%2FFD230.git 解决#671,蓝牙设备名称只显示一个时需要固定不能,去掉下面横线bug --- 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); }