From: xue <2144439972@qq.com> Date: Mon, 29 Sep 2025 07:54:04 +0000 (+0800) Subject: 增加错误信息提醒界面 X-Git-Tag: V1.0.9_20251128_194606_LN~250^2~25^2~2^2~7 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=53b6cf10b8f4daffdd8e59a2bed5cd5f2bdab88a;p=mirrors%2FFD230.git 增加错误信息提醒界面 --- 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); } + } + } }