From c8764757c7c8bcdee5f7e57807f3c025f464322b Mon Sep 17 00:00:00 2001 From: humeng Date: Fri, 25 Oct 2024 16:10:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=8F=E6=84=9F=E6=97=A5=E5=BF=97=E5=88=A0?= =?UTF-8?q?=E9=99=A4&&=E5=B5=8C=E5=85=A5=E5=BC=8F=E6=8B=89=E8=B5=B7?= =?UTF-8?q?=E5=85=83=E6=9C=8D=E5=8A=A1=E7=84=A6=E7=82=B9=E5=8A=A8=E6=95=88?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: humeng --- atomicserviceweb/source/atomicserviceweb.ets | 1 - .../interfaces/innerfullscreenlaunchcomponent.js | 2 ++ .../source/innerfullscreenlaunchcomponent.ets | 2 ++ navpushpathhelper/include/hsp_silentinstall.h | 2 +- navpushpathhelper/include/hsp_silentinstall_napi.h | 2 +- 5 files changed, 6 insertions(+), 3 deletions(-) diff --git a/atomicserviceweb/source/atomicserviceweb.ets b/atomicserviceweb/source/atomicserviceweb.ets index 201d409..46fa5b1 100644 --- a/atomicserviceweb/source/atomicserviceweb.ets +++ b/atomicserviceweb/source/atomicserviceweb.ets @@ -247,7 +247,6 @@ export struct AtomicServiceWeb { return true; } url = this.cutUrl(url); - console.log(`AtomicServiceWebLog checkUrl url=${url}`); return true; } } diff --git a/innerfullscreenlaunchcomponent/interfaces/innerfullscreenlaunchcomponent.js b/innerfullscreenlaunchcomponent/interfaces/innerfullscreenlaunchcomponent.js index 107564d..30dd75d 100644 --- a/innerfullscreenlaunchcomponent/interfaces/innerfullscreenlaunchcomponent.js +++ b/innerfullscreenlaunchcomponent/interfaces/innerfullscreenlaunchcomponent.js @@ -190,6 +190,8 @@ export class InnerFullScreenLaunchComponent extends ViewPU { flags: this.options?.flags, parameters: this.options?.parameters }); + UIExtensionComponent.backgroundColor({ 'id': -1, 'type': 10001, params: ['sys.color.ohos_id_color_titlebar_bg'], 'bundleName': '__harDefaultBundleName__', 'moduleName': '__harDefaultModuleName__' }); + UIExtensionComponent.defaultFocus(true); UIExtensionComponent.height('100%'); UIExtensionComponent.width('100%'); UIExtensionComponent.onRelease(() => { diff --git a/innerfullscreenlaunchcomponent/source/innerfullscreenlaunchcomponent.ets b/innerfullscreenlaunchcomponent/source/innerfullscreenlaunchcomponent.ets index ad3567d..a54aacb 100644 --- a/innerfullscreenlaunchcomponent/source/innerfullscreenlaunchcomponent.ets +++ b/innerfullscreenlaunchcomponent/source/innerfullscreenlaunchcomponent.ets @@ -151,6 +151,8 @@ export struct InnerFullScreenLaunchComponent { flags: this.options?.flags, parameters: this.options?.parameters }) + .backgroundColor($r('sys.color.ohos_id_color_titlebar_bg')) + .defaultFocus(true) .height('100%') .width('100%') .onRelease( diff --git a/navpushpathhelper/include/hsp_silentinstall.h b/navpushpathhelper/include/hsp_silentinstall.h index ecc6fec..e3df828 100644 --- a/navpushpathhelper/include/hsp_silentinstall.h +++ b/navpushpathhelper/include/hsp_silentinstall.h @@ -28,7 +28,7 @@ public: static int32_t SilentInstall(const std::string& moduleName, const std::function& callback, const std::function& silentInstallErrorCallBack); static bool IsHspExist(const std::string& moduleName, const std::string& pathName); - static void InitRouteMap(); + static void UpdateRouteMap(); private: static OHOS::sptr GetBundleManager(); diff --git a/navpushpathhelper/include/hsp_silentinstall_napi.h b/navpushpathhelper/include/hsp_silentinstall_napi.h index e7cedac..86361b6 100644 --- a/navpushpathhelper/include/hsp_silentinstall_napi.h +++ b/navpushpathhelper/include/hsp_silentinstall_napi.h @@ -26,7 +26,7 @@ class HspSilentInstallNapi { public: static napi_value SilentInstall(napi_env env, napi_callback_info info); static napi_value IsHspExist(napi_env env, napi_callback_info info); - static napi_value InitRouteMap(napi_env env, napi_callback_info info); + static napi_value UpdateRouteMap(napi_env env, napi_callback_info info); private: struct CallbackData {