From 6c44b9007a39cc6dadb42ebb384c27426dc57843 Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 5 Mar 2024 19:55:51 +0800 Subject: [PATCH] =?utf8?q?=E8=A7=A3=E5=86=B3=E7=B3=BB=E7=BB=9F=E5=8D=87?= =?utf8?q?=E7=BA=A7=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E6=97=A0=E5=8F=8D?= =?utf8?q?=E5=BA=94=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/system/src/SystemPresenter.cpp | 7 ++++--- .../wearable/fd230app/nativeui/system/src/SystemView.cpp | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp index f5fd4bf9a..5d8b16342 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp @@ -107,19 +107,20 @@ namespace OHOS SystemView::GetInstance()->ChangeView(SYSTEMVIEW, FACTORYRESETVIEW); return true; } - else if (strcmp(view.GetViewId(), FACTORYRESET_CHECKON)) + else if (strcmp(view.GetViewId(), FACTORYRESET_CHECKON) == 0) { return true; } - else if (strcmp(view.GetViewId(), FACTORYRESET_CHECKOFF)) + else if (strcmp(view.GetViewId(), FACTORYRESET_CHECKOFF) == 0) { p_SystemView->ChangeView(FACTORYRESETVIEW, SYSTEMVIEW); return true; } - else if(strcmp(view.GetViewId(), SYSTEM_UPGRADE)) + else if (strcmp(view.GetViewId(), SYSTEM_UPGRADE) == 0) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "uaip_cmd_update_request"); uaip_cmd_update_request(); + return true; } return false; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemView.cpp b/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemView.cpp index 8aae17802..a897beb6f 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemView.cpp @@ -197,7 +197,7 @@ namespace OHOS SystemUpgradeButtonExt->SetViewId(SYSTEM_UPGRADE); SystemUpgradeButtonExt->SetStyle(STYLE_BACKGROUND_COLOR, 0xff191919); SystemUpgradeButtonExt->SetImagePosition(326, 37); - SystemUpgradeButtonExt->SetImageSrc("/user/res/SETTING_NEXT.bin", nullptr); + SystemUpgradeButtonExt->SetImageSrc("/user/res/SETTING_NEXT.bin", "/user/res/SETTING_NEXT.bin"); SystemUpgradeButtonExt->SetText("系统升级"); SystemUpgradeButtonExt->SetAlign(TEXT_ALIGNMENT_LEFT); SystemUpgradeButtonExt->SetLabelPosition(45, 0); -- 2.17.1