From b1a49753ae85581c973c268ad5ddf666678baf03 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Wed, 5 Nov 2025 18:36:49 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3ota=E7=95=8C=E9=9D=A2=E6=96=87?= =?utf8?q?=E6=9C=AC=E6=98=BE=E7=A4=BA=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= =?utf8?q?=EF=BC=8Cota=E7=95=8C=E9=9D=A250%=E4=B8=8B=E8=BD=BD=EF=BC=8C?= =?utf8?q?=E4=BF=AE=E6=94=B9=E4=B8=BA30%=E4=B8=8B=E8=BD=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h | 2 +- .../ln/nativeapp/nativeui/ota/src/OtaLowBatteryView.cpp | 2 +- .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h index 6a034274a..5f971e676 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/include/OtaModel.h @@ -73,7 +73,7 @@ namespace OHOS void HandleDownloadEta(int seconds); void HandleDownloadFail(int type); - void SetUpgradeDescription(const std::string& description); + void SetUpgradeDescription(const std::string description); std::string GetUpgradeDescription() const; private: OtaModel(); diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaLowBatteryView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaLowBatteryView.cpp index 651c249fa..833d4fbe9 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaLowBatteryView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaLowBatteryView.cpp @@ -65,7 +65,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/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp index c0a8bccff..9ccc15e45 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp @@ -498,9 +498,10 @@ namespace OHOS WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OtaModel: Night update status cleared from KV storage"); } - void OtaModel::SetUpgradeDescription(const std::string& description) + void OtaModel::SetUpgradeDescription(const std::string description) { m_upgradeDescription = description; + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "SetUpgradeDescription:%s",m_upgradeDescription.c_str()); } std::string OtaModel::GetUpgradeDescription() const -- 2.17.1