mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-23 07:01:24 +00:00
!49171 修复先更新cutout避让区域导致后续更新cutout时未标脏
Merge pull request !49171 from bizhenhang/fixcAvoidKeyboardTdd
This commit is contained in:
commit
67b4c171dd
@ -380,10 +380,6 @@ void UpdateSafeArea(const RefPtr<PipelineBase>& 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<uint32_t>(config.Width(), config.Height()));
|
||||
}
|
||||
ParseAvoidAreasUpdate(context, avoidAreas, config);
|
||||
AvoidAreasUpdateOnUIExtension(context, avoidAreas);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user