ota界面优化 2691/1
authorluozheng <1732036298@qq.com>
Thu, 6 Nov 2025 02:28:51 +0000 (10:28 +0800)
committerluozheng <1732036298@qq.com>
Thu, 6 Nov 2025 02:28:51 +0000 (10:28 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp
code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp

index bcbfdb7..ad76117 100644 (file)
@@ -78,7 +78,7 @@ namespace OHOS
             RemindIcon->SetAutoEnable(false);
             RemindIcon->SetPosition(160, 277, 22, 22);
             RemindIcon->SetResizeMode(UIImageView::CONTAIN);
-            RemindIcon->SetSrc("/user/res/volume_down.bin");
+            RemindIcon->SetSrc("/user/res/volume_up.bin");
             RemindIcon->SetVisible(true);
             group->Add(RemindIcon);
         }
index 1f020ee..b803fe4 100644 (file)
@@ -66,7 +66,7 @@ namespace OHOS
             LittleTextLabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
             LittleTextLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 18);
             LittleTextLabel->SetStyle(STYLE_TEXT_COLOR, 0xffcccccc);
-            LittleTextLabel->SetText("电量>50%,网络正常");
+            LittleTextLabel->SetText("电量>30%,网络正常");
             LittleTextLabel->SetVisible(true);
             group->Add(LittleTextLabel);
         }
index bfa7c57..109ef3c 100644 (file)
@@ -303,7 +303,10 @@ void push_timeline_status_change_notification(const char *description, const cha
 void push_upgrade_description_notification(const char *description)
 {
     WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "[UPGRADE_DESCRIPTION] description=%s", description);
-    SendMsgToUIService(HAND_UPGRADE_DESCRIPTION_NOTIFY, 0, (void *)description, (int32_t)strlen(description));
+    char payload[512] = {0};
+    const char *d = description ? description : "";
+    (void)snprintf(payload, sizeof(payload) - 1, "%s", d);
+    SendMsgToUIService(HAND_UPGRADE_DESCRIPTION_NOTIFY, 0, (void *)payload, (int32_t)strlen(payload));
 }
 #ifdef __cplusplus
 };