From b3a5fff88a813c0f982bbba38adc23303e66732e Mon Sep 17 00:00:00 2001 From: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> Date: Mon, 1 Sep 2025 12:05:56 +0000 Subject: [PATCH] =?UTF-8?q?update=20ArkUI/entry/src/main/ets/pages/SetWind?= =?UTF-8?q?owPrivacyModeInPage.ets.=20=E5=B7=A5=E5=85=B7=E7=B1=BB=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E5=A4=A7=E9=A9=BC=E5=B3=B0=E5=91=BD=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: mkno1412222222 <12436341+mkno1412222222@user.noreply.gitee.com> --- ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets b/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets index 1f95bef..3d7a097 100644 --- a/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets +++ b/ArkUI/entry/src/main/ets/pages/SetWindowPrivacyModeInPage.ets @@ -22,7 +22,7 @@ import { BusinessError } from '@kit.BasicServicesKit'; import { common } from '@kit.AbilityKit'; import { window } from '@kit.ArkUI'; -class windowUtils { +class WindowUtils { static setWindowPrivacyModeInPage(context: common.UIAbilityContext, isFlag: boolean) { window.getLastWindow(context).then((lastWindow) => { lastWindow.setWindowPrivacyMode(isFlag, (err: BusinessError) => { @@ -69,7 +69,7 @@ struct Index { .onNavBarStateChange((isVisible: boolean) => { // Callback triggered when navigation bar display state changes console.info('------>isVisible:' + isVisible) - windowUtils.setWindowPrivacyModeInPage(this.context.getHostContext() as common.UIAbilityContext, isVisible); + WindowUtils.setWindowPrivacyModeInPage(this.context.getHostContext() as common.UIAbilityContext, isVisible); }) } } -- Gitee