!38128 屏幕旋转通知优化

Merge pull request !38128 from fangzhiyuan/direction
This commit is contained in:
openharmony_ci 2024-07-19 09:25:59 +00:00 committed by Gitee
commit 6e49890fe2
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -3123,7 +3123,9 @@ void AceContainer::NotifyDensityUpdate()
void AceContainer::NotifyDirectionUpdate()
{
bool fullUpdate = NeedFullUpdate(DIRECTION_KEY);
ConfigurationChange configurationChange { .directionUpdate = true };
pipelineContext_->FlushReload(configurationChange, fullUpdate);
if (fullUpdate) {
ConfigurationChange configurationChange { .directionUpdate = true };
pipelineContext_->FlushReload(configurationChange, fullUpdate);
}
}
} // namespace OHOS::Ace::Platform