Signed-off-by: yu <zhangyusi3@huawei.com>
Change-Id: I18d1293267da909e153aa342b53674a8975204be
This commit is contained in:
yu 2024-11-21 13:15:42 +00:00
parent e77cf5e119
commit 34fdfe17a2
4 changed files with 5 additions and 6 deletions

View File

@ -113,7 +113,8 @@ private:
WSRect virtualArrangedRect_;
void ExecuteFoldScreenStatusChangeCallbacks(DisplayId displayId,
SuperFoldStatus status, SuperFoldStatus prevStatus); std::mutex callbackMutex_;
SuperFoldStatus status, SuperFoldStatus prevStatus);
std::mutex callbackMutex_;
std::unordered_map<int32_t, std::weak_ptr<FoldScreenStatusChangeCallback>> foldScreenStatusChangeCallbacks_;
};

View File

@ -181,7 +181,6 @@ public:
WSError UpdateActiveStatus(bool isActive) override;
WSError OnSessionEvent(SessionEvent event) override;
void UpdateWaterfallMode(SessionEvent event);
WSError OnSessionEvent(SessionEvent event, const SessionEventParam& param);
WSError SyncSessionEvent(SessionEvent event) override;
WSError OnLayoutFullScreenChange(bool isLayoutFullScreen) override;
@ -635,6 +634,7 @@ protected:
* PC Fold Screen
*/
bool IsFullScreenWaterfallMode();
void UpdateWaterfallMode(SessionEvent event);
sptr<PcFoldScreenController> pcFoldScreenController_ = nullptr;
std::atomic_bool throwSlipFullScreenFlag_ = false;

View File

@ -529,8 +529,7 @@ void PcFoldScreenController::UpdateFullScreenWaterfallMode(bool isWaterfallMode)
}
controller->isFullScreenWaterfallMode_ = isWaterfallMode;
controller->ExecuteFullScreenWaterfallModeChangeCallback();
},
__func__);
}, __func__);
}
void PcFoldScreenController::RegisterFullScreenWaterfallModeChangeCallback(

View File

@ -4052,8 +4052,7 @@ void SceneSession::RegisterFullScreenWaterfallModeChangeCallback(std::function<v
return;
}
session->pcFoldScreenController_->RegisterFullScreenWaterfallModeChangeCallback(std::move(func));
},
__func__);
}, __func__);
}
void SceneSession::SetSessionChangeByActionNotifyManagerListener(const SessionChangeByActionNotifyManagerFunc& func)