From adef553995b97a2f1329fb84ecbc006122749cc2 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Thu, 12 Dec 2024 16:03:50 +0800 Subject: [PATCH] =?utf8?q?=E6=B6=88=E6=81=AF=EF=BC=9A=E6=9B=B4=E6=AD=A3?= =?utf8?q?=E6=B6=88=E6=81=AF=E7=9A=84=E4=BC=98=E5=85=88=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/message/src/MessageModel.cpp | 4 ++-- .../service/msg_center/src/msg_center_customer.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp index 4954658ea..aae7a45a4 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp @@ -202,9 +202,9 @@ static void Notify(void *args, const Topic topic, Request *request) { } - // CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0); + CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0); - show_notify_messgae(); + // show_notify_messgae(); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Message popup sent"); diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index d5c0eb683..68d00d7a9 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -996,11 +996,14 @@ void MsgCenterNotifyStaticHeartRateProc(const Topic topic, Request* req) //消息通知 void MsgCenterNotifyMessageProc(const Topic topic, Request* req) { - //unused(topic); + // unused(topic); unused(req); // WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyMessageProc !"); if (CheckPriority(topic)) { - do_custom_fileoperate_service_check_msg(CUSTOM_FILEOPERATE_MSG_TYPE_MESSAGE_DATA_NOTIFY, nullptr, 0); + // do_custom_fileoperate_service_check_msg(CUSTOM_FILEOPERATE_MSG_TYPE_MESSAGE_DATA_NOTIFY, + // nullptr, 0); + OHOS::NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE); + OHOS::NotificationManager::GetInstance()->ShowNotify(OHOS::CreateMessageView, TOPIC_EVENT_MESSAGENOTE, true); } } -- 2.17.1