From d9c19f7664c0f45b7acc6bbd8135d805fd80f1df Mon Sep 17 00:00:00 2001 From: Caisking Date: Mon, 25 Aug 2025 12:04:23 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E9=9B=B7=E9=B8=9F=E5=BC=80?= =?utf8?q?=E6=9C=BA=E8=BF=9B=E5=85=A5=E9=9B=B7=E9=B8=9FSlice?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230/nativeapp/nativelauncher/src/NativeLauncher.cpp | 7 ++++++- .../nativeui/thunderbird/src/ThunderBirdPresenter.cpp | 3 +-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativelauncher/src/NativeLauncher.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativelauncher/src/NativeLauncher.cpp index b2d7266c1..dbec4cd9f 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativelauncher/src/NativeLauncher.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativelauncher/src/NativeLauncher.cpp @@ -112,6 +112,12 @@ void NativeLauncher::InitNativeLauncher(LaunchMode mode) { WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "InitLangues error"); } + // 如果是雷鸟项目 + #ifdef BOARD_LEINIAO + NativeRegisterManager::GetInstance().SetDefaultSliceId(VIEW_THUNDER_BIRD); + return; + #endif + // 初始化所有预加载slice NativeRegisterManager::GetInstance().InitAllNativesSlices(); @@ -172,7 +178,6 @@ void NativeLauncher::InitNativeLauncher(LaunchMode mode) // 开机增加震动 页面启动震动一次 // custom_VibratorFunc_int(0); - // #endif } // 注册开机时间 SystemLogData systemlog; diff --git a/code/sdk/application/wearable/fd230/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/fd230/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 6cf1c2303..db9cb1199 100644 --- a/code/sdk/application/wearable/fd230/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/fd230/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -15,8 +15,7 @@ namespace OHOS { - REGIST_MENU_PRO(VIEW_THUNDER_BIRD, ThunderBirdMainView, ThunderBirdPresenter, - PNG_APPLIST_MESSAGE_IMAGE_BIG, PNG_APPLIST_MESSAGE_IMAGE,PNG_APPLIST_MESSAGE_IMAGE, "消息通知", STR_MESSAGE_NOTIFICATION); + REGIST_SLICE(VIEW_THUNDER_BIRD, ThunderBirdMainView, ThunderBirdPresenter); // 当前Presenter属性实例化的内存指针 static ThunderBirdPresenter *g_pThunderBirdPresenter = nullptr; -- 2.17.1