From b8ea5dd22643b9208faf7e19d4dd20b4c361d86c Mon Sep 17 00:00:00 2001 From: lon9 <815882449@qq.com> Date: Thu, 28 Aug 2025 10:38:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=A4=9A=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=9B=B8=E6=9C=BA=E5=90=8C=E6=BA=90=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/src/main/ets/entryability/EntryAbility.ets | 1 + entry/src/main/ets/pages/Index.ets | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/entry/src/main/ets/entryability/EntryAbility.ets b/entry/src/main/ets/entryability/EntryAbility.ets index 949a08e..f377163 100644 --- a/entry/src/main/ets/entryability/EntryAbility.ets +++ b/entry/src/main/ets/entryability/EntryAbility.ets @@ -139,5 +139,6 @@ export default class EntryAbility extends UIAbility { // Main window is destroyed, release UI related resources hilog.info(DOMAIN, 'testTag', '%{public}s', 'Ability onWindowStageDestroy'); } + // [EndExclude WindowSizeChange] } // [End WindowSizeChange] \ No newline at end of file diff --git a/entry/src/main/ets/pages/Index.ets b/entry/src/main/ets/pages/Index.ets index 9867354..fc1d943 100644 --- a/entry/src/main/ets/pages/Index.ets +++ b/entry/src/main/ets/pages/Index.ets @@ -44,7 +44,6 @@ struct Index { 'ohos.permission.READ_IMAGEVIDEO', 'ohos.permission.WRITE_IMAGEVIDEO' ]; - // [Start Preview2] // [Start FoldStatusChange] // [Start SelectCamera2] onFoldStatusChange: (foldStatus: display.FoldStatus) => void = (foldStatus: display.FoldStatus) => { @@ -53,10 +52,8 @@ struct Index { // Determine the page layout that has entered half folded status and prohibit portrait orientation. if (this.widthBp === WidthBreakpoint.WIDTH_MD && (orientation === display.Orientation.LANDSCAPE || orientation === display.Orientation.LANDSCAPE_INVERTED)) { - // [StartExclude Preview2] this.isHalfFolded = true; this.windowUtil.setMainWindowOrientation(window.Orientation.LANDSCAPE); - // [EndExclude Preview2] this.cameraUtil.setHalfFoldedRect(this.windowUtil.getWindowSize()); } else { if (this.oldFoldStatus === display.FoldStatus.FOLD_STATUS_FOLDED) { @@ -69,12 +66,10 @@ struct Index { } return; } - // [StartExclude Preview2] // [StartExclude SelectCamera2] if (this.widthBp !== WidthBreakpoint.WIDTH_SM) { this.windowUtil.setMainWindowOrientation(window.Orientation.AUTO_ROTATION_RESTRICTED); } - // [EndExclude Preview2] // [EndExclude SelectCamera2] // Exit the half folded status page. if (this.isHalfFolded) { @@ -98,7 +93,6 @@ struct Index { // [EndExclude SelectCamera2] } // [End FoldStatusChange] - // [End Preview2] aboutToAppear(): void { display.on('foldStatusChange', this.onFoldStatusChange); -- Gitee