From 6b5c15e17077294f2f1e30ce6a09a92764d96fbd Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Fri, 26 Sep 2025 11:35:50 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9otabug?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp | 3 +++ .../wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp | 4 ++-- .../ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp | 7 +++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp index dbab9c717..4f509ca41 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp @@ -88,10 +88,13 @@ namespace OHOS RemindIcon->SetVisible(true); group->Add(RemindIcon); } + RemindIcon1 = new UIImageView(); if (RemindIcon1) { + RemindIcon1->SetAutoEnable(false); RemindIcon1->SetPosition(83, 124, 36, 36); RemindIcon1->SetSrc("/user/res/warning.bin"); + RemindIcon1->SetResizeMode(UIImageView::CONTAIN); RemindIcon1->SetVisible(true); group->Add(RemindIcon1); } 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 8b7940a99..00bce7caf 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 @@ -253,9 +253,9 @@ namespace OHOS WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "OtaModel::CheckOtaResult"); if(status == 3) { - OtaView::GetInstance()->ChangeView(OtaView::OTA_VIEW_UPDATING, OtaView::OTA_VIEW_UPDATE_SUCCESS); - } else if(status == 4) { OtaView::GetInstance()->ChangeView(OtaView::OTA_VIEW_UPDATING, OtaView::OTA_VIEW_UPDATE_FAILED); + } else if(status == 4) { + OtaView::GetInstance()->ChangeView(OtaView::OTA_VIEW_UPDATING, OtaView::OTA_VIEW_UPDATE_SUCCESS); } } void OtaModel::UpdateOtaProgress(int progress) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp index 59879160f..55909abc5 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp @@ -60,6 +60,7 @@ namespace OHOS TextLabel->SetVisible(true); group->Add(TextLabel); } + LittleTextLabel = new UILabelExt(); if (LittleTextLabel) { LittleTextLabel->SetPosition(80, 184, 220, 28); @@ -79,16 +80,22 @@ namespace OHOS RemindLabel->SetVisible(true); group->Add(RemindLabel); } + RemindIcon = new UIImageView(); if (RemindIcon) { + RemindIcon->SetAutoEnable(false); RemindIcon->SetPosition(160, 277, 22, 22); + RemindIcon->SetResizeMode(UIImageView::CONTAIN); RemindIcon->SetSrc("/user/res/volume_up.bin"); RemindIcon->SetVisible(true); group->Add(RemindIcon); } + RemindIcon1 = new UIImageView(); if (RemindIcon1) { + RemindIcon1->SetAutoEnable(false); RemindIcon1->SetPosition(98, 124, 36, 36); + RemindIcon1->SetResizeMode(UIImageView::CONTAIN); RemindIcon1->SetSrc("/user/res/completed.bin"); RemindIcon1->SetVisible(true); group->Add(RemindIcon1); -- 2.17.1