diff --git a/ohos/src/main/ets/components/plugin/WindowManagerPlus.ets b/ohos/src/main/ets/components/plugin/WindowManagerPlus.ets index 1045515a1384f8ca8cf151e98ef4835746ef548c..d56323729a5d2754ce8d2bcc3189c5dd1e0545ad 100644 --- a/ohos/src/main/ets/components/plugin/WindowManagerPlus.ets +++ b/ohos/src/main/ets/components/plugin/WindowManagerPlus.ets @@ -275,6 +275,11 @@ export default class WindowManagerPlus implements MethodCallHandler { break; case "setFullScreen": const isFullScreen: boolean = getMethodArg(call, 'isFullScreen'); + if(isFullScreen){ + this.windowClass?.maximize(window.MaximizePresentation.FOLLOW_APP_IMMERSIVE_SETTING); + } else { + this.windowClass?.recover(); + } this.windowClass?.setWindowLayoutFullScreen(isFullScreen); result.success(true); break;