From 5b4fcce964a686bd435c5d026897a1b249b9de91 Mon Sep 17 00:00:00 2001 From: chenyuyan Date: Thu, 13 Oct 2022 22:59:19 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20e99bd1f=20from=20https://gitee.com/oran?= =?UTF-8?q?geeeechen/notification=5Fdistributed=5Fnotification=5Fservice/p?= =?UTF-8?q?ulls/637=20=E6=9B=BF=E6=8D=A2UI=E5=BC=B9=E7=AA=97=E6=96=B9?= =?UTF-8?q?=E6=A1=88update?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chenyuyan Change-Id: I45898c314337d8e206c2e359549e8c106c1f3c72 --- frameworks/js/napi/src/enable_notification.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/js/napi/src/enable_notification.cpp b/frameworks/js/napi/src/enable_notification.cpp index 769140deb..322deb147 100644 --- a/frameworks/js/napi/src/enable_notification.cpp +++ b/frameworks/js/napi/src/enable_notification.cpp @@ -367,6 +367,7 @@ void StartNotificationDialog(AsyncCallbackInfoIsEnable *callbackInfo) want.SetElementName("com.example.dialogsPopped", "DialogPopped"); want.SetParam("callbackStubImpl_", callbackStubImpl_); want.SetParam("tokenId", token); + want.SetParam("from", AAFwk::AbilityManagerClient::GetInstance()->GetTopAbility().GetBundleName()); ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->StartAbility(want, token, -1); ANS_LOGD("%{public}s, End Calling StartNotificationDialog. ret=%{public}d", __func__, err); } else { @@ -394,7 +395,7 @@ void ResetCallbackStubImpl() bool CallbackStubImpl::OnEnableNotification(bool isAllow) { - ANS_LOGD("isAllow: %{public}d", isAllow); + ANS_LOGI("isAllow: %{public}d", isAllow); if (task_) { task_->allowed = isAllow; napi_value resourceName = nullptr; -- Gitee