From 95d62851c2f79c8b756a3a4fa69b76667f641c9f Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Tue, 8 Oct 2024 15:25:20 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E6=94=B9=E4=BA=8C=E7=BB=B4=E7=A0=81?= =?utf8?q?=E7=95=8C=E9=9D=A2=E7=82=B9=E5=87=BB=E4=BA=94=E6=AC=A1=E8=BF=9B?= =?utf8?q?=E5=85=A5=E4=BA=A7=E6=B5=8B=E7=95=8C=E9=9D=A2=EF=BC=8C=E7=B3=BB?= =?utf8?q?=E7=BB=9F=E5=85=B3=E4=BA=8E=E7=95=8C=E9=9D=A2=E7=82=B9=E5=87=BB5?= =?utf8?q?=E6=AC=A1=E8=BF=9B=E5=85=A5=E8=B0=83=E8=AF=95=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/system/src/SystemPresenter.cpp | 4 +++- .../nativeui/watchQRcode/src/WatchQRCodePresenter.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 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 f78be5fb5..383fb1779 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/system/src/SystemPresenter.cpp @@ -15,6 +15,7 @@ #include "ui_resource_string.h" #include "ConfigModel.h" #include "vibrator_service.h" +#include "broadcast_feature.h" namespace OHOS { @@ -148,7 +149,8 @@ namespace OHOS if (OnClick_num > 5) { - NativeAbility::GetInstance().ChangeSlice(VIEW_TEST); + // NativeAbility::GetInstance().ChangeSlice(VIEW_TEST); + CustomEventPublish(TOPIC_EVENT_DEBUGOUTPUT, NULL, 0); } } else diff --git a/code/sdk/application/wearable/fd230app/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp index 804feaf9a..aaebaaf47 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/watchQRcode/src/WatchQRCodePresenter.cpp @@ -9,6 +9,7 @@ #include #include "bleService.h" #include "broadcast_feature.h" +#include "AppViewIDs.h" namespace OHOS { // 当前Presenter属性实例化的内存指针 @@ -75,7 +76,8 @@ namespace OHOS OnClick_num++; if (OnClick_num > 5) { - CustomEventPublish(TOPIC_EVENT_DEBUGOUTPUT, NULL, 0); + // CustomEventPublish(TOPIC_EVENT_DEBUGOUTPUT, NULL, 0); + NativeAbility::GetInstance().ChangeSlice(VIEW_TEST); } } else -- 2.17.1