From f621f2d7e35a998e5a384326be4ccc82e47fc317 Mon Sep 17 00:00:00 2001 From: chenyuyan Date: Tue, 3 Jan 2023 17:13:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=B9=E7=AA=97getbundlename=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyuyan Change-Id: I8b3e7bc043b27d28893401f3f1345a58375d0766 --- services/ans/src/notification_dialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/ans/src/notification_dialog.cpp b/services/ans/src/notification_dialog.cpp index b8a7e5006..df25bf47d 100644 --- a/services/ans/src/notification_dialog.cpp +++ b/services/ans/src/notification_dialog.cpp @@ -49,10 +49,11 @@ ErrCode NotificationDialog::StartEnableNotificationDialogAbility(const sptrGetTopAbility().GetBundleName()); want.SetElementName("com.ohos.notificationdialog", "EnableNotificationDialog"); want.SetParam("callbackStubImpl", callbackInfo); want.SetParam("tokenId", token); - want.SetParam("from", AAFwk::AbilityManagerClient::GetInstance()->GetTopAbility().GetBundleName()); + want.SetParam("from", bundleName); result = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token, -1); ANS_LOGD("%{public}s, End Calling StartNotificationDialog. result=%{public}d", __func__, result); return result; -- Gitee