优化重置二维码
authorxue <2144439972@qq.com>
Fri, 10 Oct 2025 02:16:11 +0000 (10:16 +0800)
committerxue <2144439972@qq.com>
Fri, 10 Oct 2025 02:16:11 +0000 (10:16 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp

index caef377..b10d6c5 100644 (file)
@@ -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();
+    }
 
 }