From 39c95b72228bb004158eaba68e779fe6b5aad5bb Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 6 Nov 2025 10:28:51 +0800 Subject: [PATCH] =?utf8?q?ota=E7=95=8C=E9=9D=A2=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp | 2 +- .../ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp | 2 +- code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp index bcbfdb7a4..ad7611786 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateSuccessView.cpp @@ -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); } diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp index 1f020eeba..b803fe40a 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaNightUpdateView.cpp @@ -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); } diff --git a/code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp b/code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp index bfa7c578e..109ef3cbd 100644 --- a/code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp +++ b/code/sdk/zhihui/leiniao/ln_api_cpp/ln_api_interface.cpp @@ -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 }; -- 2.17.1