From: luozheng <1732036298@qq.com> Date: Thu, 6 Nov 2025 02:28:51 +0000 (+0800) Subject: ota界面优化 X-Git-Tag: V1.0.9_20251128_194606_LN~107^2~1 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=39c95b72228bb004158eaba68e779fe6b5aad5bb;p=mirrors%2FFD230.git ota界面优化 --- 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 };