From 8c01903c20616bb2f5ba0fc7fea8c6c4d84bc03d Mon Sep 17 00:00:00 2001 From: Lloyd_Liu <12595420+Lloyd-Liu@user.noreply.gitee.com> Date: Thu, 13 Mar 2025 11:18:34 +0000 Subject: [PATCH] update entry/src/main/ets/entryability/EntryAbility.ets. Signed-off-by: Lloyd_Liu <12595420+Lloyd-Liu@user.noreply.gitee.com> --- entry/src/main/ets/entryability/EntryAbility.ets | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 471b041..bf4e047 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -47,13 +47,7 @@ export default class EntryAbility extends UIAbility { }); windowStage.getMainWindow((_err, windowClass) => { - windowClass.setWindowLayoutFullScreen(false, (err) => { - if (err.code) { - hilog.error(0x0000, 'EntryAbility', 'Failed to set the window layout to no-full-screen mode. Cause:' + JSON.stringify(err)); - return; - } - hilog.info(0x0000, 'EntryAbility', 'Succeeded in setting the window layout to no-full-screen mode.'); - }); + windowClass.setWindowLayoutFullScreen(false); }); windowStage.loadContent('pages/HomePage', (err, data) => { -- Gitee