From: xue <2144439972@qq.com> Date: Fri, 10 Oct 2025 02:16:11 +0000 (+0800) Subject: 优化重置二维码 X-Git-Tag: V1.0.9_20251128_194606_LN~268^2~6 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=597185bd21e0e12512a0a7f7c79f96d256fa4959;p=mirrors%2FFD230.git 优化重置二维码 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp index caef377da..b10d6c522 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp @@ -4,6 +4,8 @@ #include "battery_hal.h" #include "battery_service.h" #include "audio_manager.h" +#include "thunderbird/include/ThunderBirdModel.h" +#include "ln_api.h" namespace OHOS { static ThunderBirdReminderView *g_pThunderBirdReminderView{nullptr}; @@ -340,7 +342,7 @@ namespace OHOS RemindIcon->SetPosition(133, 169, 94, 94); RemindIcon->SetStyle(STYLE_BACKGROUND_COLOR, 0xff000000); RemindIcon->SetStyle(STYLE_BACKGROUND_OPA, 0xff); - //RemindIcon->SetSrc("/user/res/volume_up.bin"); + RemindIcon->SetSrc(LN_CHAT_STAMINA_QRCODE_FILE); RemindIcon->SetVisible(true); } if(RemindLabel) @@ -351,7 +353,7 @@ namespace OHOS } if(RemindIcon2) { - RemindIcon2->SetPosition(158, 298, 24, 24); + RemindIcon2->SetPosition(159, 300, 24, 24); RemindIcon2->SetSrc("/user/res/volume_up.bin"); RemindIcon2->SetVisible(true); } @@ -455,6 +457,11 @@ namespace OHOS TextLabel->SetText(text); TextLabel->Invalidate(); } + void ThunderBirdReminderView::UpdateTaskReminderIcon(const char* icon) + { + RemindIcon->SetSrc(icon); + RemindIcon->Invalidate(); + } }