diff --git a/frameworks/ans/src/notification_request.cpp b/frameworks/ans/src/notification_request.cpp index 96f2cacb655ca49dea5e2e65065919b9da2148a0..41124e86db17bedf312fba7aa13b83c87bab4273 100644 --- a/frameworks/ans/src/notification_request.cpp +++ b/frameworks/ans/src/notification_request.cpp @@ -2846,7 +2846,8 @@ ErrCode NotificationRequest::CheckImageSizeForPicture(std::shared_ptr &content) +ErrCode NotificationRequest::CheckImageSizeForLiveView(std::shared_ptr &content, + bool collaborateFlag) { auto liveViewContent = std::static_pointer_cast(content); auto pictureMap = liveViewContent->GetPicture(); @@ -2860,7 +2861,7 @@ ErrCode NotificationRequest::CheckImageSizeForLiveView(std::shared_ptr &content); static ErrCode CheckImageSizeForPicture(std::shared_ptr &content); - static ErrCode CheckImageSizeForLiveView(std::shared_ptr &content); + static ErrCode CheckImageSizeForLiveView(std::shared_ptr &content, + bool collaborateFlag = false); static bool ConvertJsonToNotificationBundleOption(NotificationRequest *target, const nlohmann::json &jsonObject); static bool ConvertJsonToAgentBundle(NotificationRequest *target, const nlohmann::json &jsonObject); static ErrCode CheckLockScreenPictureSizeForLiveView(std::shared_ptr &content);