From 3f89c460ad232a496179b6865c81e646aed511dc Mon Sep 17 00:00:00 2001 From: luojingsong Date: Wed, 4 Dec 2024 15:09:07 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=9C=AC=E5=9C=B0=E7=AE=A1?= =?UTF-8?q?=E6=8E=A7=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: luojingsong Change-Id: I662d9af7ff46deedfc07c996474bf036444f39e5 --- services/ans/src/advanced_notification_service.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/services/ans/src/advanced_notification_service.cpp b/services/ans/src/advanced_notification_service.cpp index 6213f050d..e4514b072 100644 --- a/services/ans/src/advanced_notification_service.cpp +++ b/services/ans/src/advanced_notification_service.cpp @@ -634,12 +634,16 @@ ErrCode AdvancedNotificationService::PublishPreparedNotification(const sptrGetSlotType(); int32_t ctrlResult = EXTENTION_WRAPPER->LocalControl(request); if (ctrlResult != ERR_OK) { message.ErrorCode(ctrlResult); NotificationAnalyticsUtil::ReportPublishFailedEvent(request, message); return ctrlResult; } + if (request->GetSlotType() != oldType) { + SetRequestBySlotType(request, bundleOption); + } #endif bool isSystemApp = AccessTokenHelper::IsSystemApp(); bool isSubsystem = AccessTokenHelper::VerifyNativeToken(tokenCaller); -- Gitee