From: luozheng <1732036298@qq.com> Date: Tue, 8 Oct 2024 07:25:20 +0000 (+0800) Subject: 修改二维码界面点击五次进入产测界面,系统关于界面点击5次进入调试界面 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1124%2Fhead;p=mirrors%2FFD230.git 修改二维码界面点击五次进入产测界面,系统关于界面点击5次进入调试界面 --- 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