From: Caisking <3449750381@qq.com> Date: Thu, 12 Dec 2024 08:03:50 +0000 (+0800) Subject: 消息:更正消息的优先级 X-Git-Tag: v1.3.113-repair_tp~141^2~13 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=adef553995b97a2f1329fb84ecbc006122749cc2;p=mirrors%2FFD230.git 消息:更正消息的优先级 --- 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); } }