mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-23 23:10:54 +00:00
!10613 UpdateScaleInner拦截对后台应用的通知
Merge pull request !10613 from lpf/Liulu
This commit is contained in:
commit
a2ee1d6072
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user