From bdbcacbdb9dc935d95fd444052d0f87d31dfaa8a Mon Sep 17 00:00:00 2001 From: bizhenhang Date: Fri, 22 Nov 2024 09:35:02 +0800 Subject: [PATCH] =?UTF-8?q?fix=20update=20cutout=20before=20parseAvoidArea?= =?UTF-8?q?s=20but=20don=E2=80=98t=20markDirty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: bizhenhang Change-Id: I0e60e496fd12c0bb1d2b1afd4b3e3ee391480144 --- adapter/ohos/entrance/ui_content_impl.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/adapter/ohos/entrance/ui_content_impl.cpp b/adapter/ohos/entrance/ui_content_impl.cpp index 15cb282d9f5..5fa272c2ae7 100644 --- a/adapter/ohos/entrance/ui_content_impl.cpp +++ b/adapter/ohos/entrance/ui_content_impl.cpp @@ -380,10 +380,6 @@ void UpdateSafeArea(const RefPtr& pipelineContext, CHECK_NULL_VOID(safeAreaManager); uint32_t keyboardHeight = safeAreaManager->GetKeyboardInset().Length(); safeAreaManager->UpdateKeyboardSafeArea(keyboardHeight, config.Height()); - if (avoidAreas.find(OHOS::Rosen::AvoidAreaType::TYPE_CUTOUT) == avoidAreas.end()) { - safeAreaManager->UpdateCutoutSafeArea(container->GetViewSafeAreaByType(Rosen::AvoidAreaType::TYPE_CUTOUT), - NG::OptionalSize(config.Width(), config.Height())); - } ParseAvoidAreasUpdate(context, avoidAreas, config); AvoidAreasUpdateOnUIExtension(context, avoidAreas); }