diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 471b041318af1ea7190d1ab5961970564c767549..bf4e047dcb290ecae7308181e69d508766abe2cb 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) => {