From: xue <2144439972@qq.com> Date: Fri, 26 Sep 2025 03:35:50 +0000 (+0800) Subject: 修改otabug X-Git-Tag: V1.0.9_20251128_194606_LN~250^2~45^2~4^2~2^2 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2405%2F1;p=mirrors%2FFD230.git 修改otabug --- 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);