From 8f68b0b28fc72ca4dceb6264e1d52761bc517e41 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 2 Oct 2024 18:29:36 +0800 Subject: [PATCH] =?utf8?q?=E5=88=A0=E9=99=A4=E8=AE=BE=E7=BD=AE=E8=A7=86?= =?utf8?q?=E5=9B=BE=E6=97=A0=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/settings/src/SettingAdapter.cpp | 20 +++++++++---------- .../nativeui/settings/src/SettingItemView.cpp | 10 +++++----- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingAdapter.cpp b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingAdapter.cpp index 5f4ba086d..73cb3088c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingAdapter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingAdapter.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-01-29 15:37:44 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-14 21:19:30 + * @LastEditTime: 2024-10-02 15:33:51 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingAdapter.cpp */ // #include "SettingAdapter.h" @@ -69,15 +69,15 @@ namespace OHOS item->SetItemInfo(itemData); item->SetOnClickListener(itemClickListener); - UIImageView *view = dynamic_cast(item->GetNeedToUpdateImage()); - if (view != nullptr && index == 6) - { - item->GetNeedToUpdateImage()->SetVisible(true); - } - else - { - item->GetNeedToUpdateImage()->SetVisible(false); - } + // UIImageView *view = dynamic_cast(item->GetNeedToUpdateImage()); + // if (view != nullptr && index == 6) + // { + // item->GetNeedToUpdateImage()->SetVisible(true); + // } + // else + // { + // item->GetNeedToUpdateImage()->SetVisible(false); + // } item->SetViewIndex(index); return item; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingItemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingItemView.cpp index b01996300..17580ce28 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingItemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingItemView.cpp @@ -2,7 +2,7 @@ * @Author: luozheng 1732036298@qq.com * @Date: 2024-03-27 19:48:49 * @LastEditors: luozheng 1732036298@qq.com - * @LastEditTime: 2024-09-25 14:49:58 + * @LastEditTime: 2024-10-02 15:34:50 * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/settings/src/SettingItemView.cpp */ @@ -87,10 +87,10 @@ namespace OHOS SetTouchable(false); } - if (itemInfo.textId == STR_SYSTEM && SystemUpdateModel::GetInstance().IsLatestVersion() == false) // 如果不是最新系统版本出现小圆点 - { - NeedToUpdateImageinit(); - } + // if (itemInfo.textId == STR_SYSTEM && SystemUpdateModel::GetInstance().IsLatestVersion() == false) // 如果不是最新系统版本出现小圆点 + // { + // NeedToUpdateImageinit(); + // } } void SettingItemView::SetUpChild() -- 2.17.1