From bfce7dfb33e54ba08f9e5160c55e66c581d96180 Mon Sep 17 00:00:00 2001 From: chenqiao002 Date: Mon, 10 Mar 2025 07:49:06 +0000 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8DIBS69X=E8=AE=BE=E7=BD=AEo?= =?UTF-8?q?rientation=E4=B8=BAauto=5Frotation=5Funspecified=E6=88=96follow?= =?UTF-8?q?=5Fdesktop=E6=97=B6=EF=BC=8C=E7=B3=BB=E7=BB=9F=E6=8A=A5?= =?UTF-8?q?=E9=94=99Do=20not=20support=20this=20Orientation=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenqiao002 --- wm/include/window_impl.h | 2 ++ wmserver/src/starting_window.cpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/wm/include/window_impl.h b/wm/include/window_impl.h index 9790f5a595..c52136633b 100644 --- a/wm/include/window_impl.h +++ b/wm/include/window_impl.h @@ -80,6 +80,8 @@ const std::map ABILITY_TO_WMS {OHOS::AppExecFwk::DisplayOrientation::AUTO_ROTATION_PORTRAIT_RESTRICTED, Orientation::AUTO_ROTATION_PORTRAIT_RESTRICTED}, {OHOS::AppExecFwk::DisplayOrientation::LOCKED, Orientation::LOCKED}, + {OHOS::AppExecFwk::DisplayOrientation::AUTO_ROTATION_UNSPECIFIED, Orientation::AUTO_ROTATION_UNSPECIFIED}, + {OHOS::AppExecFwk::DisplayOrientation::FOLLOW_DESKTOP, Orientation::FOLLOW_DESKTOP}, }; class WindowImpl : public Window, AAFwk::PrepareTerminateCallbackStub { diff --git a/wmserver/src/starting_window.cpp b/wmserver/src/starting_window.cpp index 0c8eb24df6..069f4beb15 100644 --- a/wmserver/src/starting_window.cpp +++ b/wmserver/src/starting_window.cpp @@ -51,6 +51,8 @@ const std::map ABILITY_TO_WMS {OHOS::AppExecFwk::DisplayOrientation::AUTO_ROTATION_PORTRAIT_RESTRICTED, Orientation::AUTO_ROTATION_PORTRAIT_RESTRICTED}, {OHOS::AppExecFwk::DisplayOrientation::LOCKED, Orientation::LOCKED}, + {OHOS::AppExecFwk::DisplayOrientation::AUTO_ROTATION_UNSPECIFIED, Orientation::AUTO_ROTATION_UNSPECIFIED}, + {OHOS::AppExecFwk::DisplayOrientation::FOLLOW_DESKTOP, Orientation::FOLLOW_DESKTOP}, }; std::recursive_mutex StartingWindow::mutex_; -- Gitee