!10613 UpdateScaleInner拦截对后台应用的通知

Merge pull request !10613 from lpf/Liulu
This commit is contained in:
openharmony_ci 2024-11-08 04:00:33 +00:00 committed by Gitee
commit a2ee1d6072
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -5252,6 +5252,10 @@ bool SceneSession::UpdateScaleInner(float scaleX, float scaleY, float pivotX, fl
NearEqual(pivotX_, pivotX) && NearEqual(pivotY_, pivotY)) {
return false;
}
if (!IsSessionForeground()) {
TLOGW(WmsLogTag::WMS_LAYOUT, "id:%{public}d, session is not foreground!", GetPersistentId());
return false;
}
Session::SetScale(scaleX, scaleY, pivotX, pivotY);
if (sessionStage_ != nullptr) {
Transform transform;