修改otabug 2405/1 2405/head 2406/target/1
authorxue <2144439972@qq.com>
Fri, 26 Sep 2025 03:35:50 +0000 (11:35 +0800)
committerxue <2144439972@qq.com>
Fri, 26 Sep 2025 03:35:50 +0000 (11:35 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaFailedView.cpp
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaModel.cpp
code/sdk/application/wearable/ln/nativeapp/nativeui/ota/src/OtaSuccessView.cpp

index dbab9c7..4f509ca 100644 (file)
@@ -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);
         }
index 8b7940a..00bce7c 100644 (file)
@@ -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)
index 5987916..55909ab 100644 (file)
@@ -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);