From: Caisking Date: Mon, 25 Aug 2025 04:04:23 +0000 (+0800) Subject: 增加雷鸟开机进入雷鸟Slice X-Git-Tag: leiniao_debug_1.0.0_20250922_020716~161 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F2143%2F1;p=mirrors%2FFD230.git 增加雷鸟开机进入雷鸟Slice --- 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;