From 53b6cf10b8f4daffdd8e59a2bed5cd5f2bdab88a Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Mon, 29 Sep 2025 15:54:04 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E4=BF=A1?= =?utf8?q?=E6=81=AF=E6=8F=90=E9=86=92=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../thunderbird/include/ThunderBirdAdjustView.h | 1 + .../thunderbird/src/ThunderBirdAdjustView.cpp | 11 ++++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h index 92ef6ff50..9a1062d68 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h @@ -91,6 +91,7 @@ namespace OHOS UIViewGroup *ThunderBirdAdjustViewInit(void); void ClearAll(void); void Show(int16_t showView); + void UpdateTaskReminderText(const char* text); enum : int16_t { THUNDERBIRD_ADJUSTVIEW_BIND_SUCCESS = 0, // 绑定成功 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdAdjustView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdAdjustView.cpp index 4715b81e2..98d01db3b 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdAdjustView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdAdjustView.cpp @@ -1,4 +1,5 @@ #include "thunderbird/include/ThunderBirdAdjustView.h" +#include "thunderbird/include/ThunderBirdMainView.h" #include "wearable_log.h" #include "common/image_cache_manager.h" @@ -186,7 +187,7 @@ namespace OHOS { if (TextLabel) { - TextLabel->SetPosition(112, 148, 180, 42); + TextLabel->SetPosition(112, 148, 248, 42); TextLabel->SetText("网络连接失败"); TextLabel->SetVisible(true); } @@ -231,6 +232,14 @@ namespace OHOS break; } } + void ThunderBirdAdjustView::UpdateTaskReminderText(const char* text) + { + int16_t currentSubView = ThunderBirdMainView::GetInstance()->GetCurrentSubView(); + if(currentSubView == THUNDERBIRD_ADJUSTVIEW_WARNING) + { + if (TextLabel) { TextLabel->SetText(text); } + } + } } -- 2.17.1