From 98de5fede848b405408e96f42d9a61727ecb2e56 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 9 Oct 2024 09:37:26 +0800 Subject: [PATCH] =?utf8?q?=E6=B6=88=E6=81=AF=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E7=9C=81=E7=94=B5=E6=A8=A1=E5=BC=8F=E4=B8=8D=E8=BF=9B=E8=A1=8C?= =?utf8?q?=E6=B6=88=E6=81=AF=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativeui/message/src/MessageModel.cpp | 5 +++-- .../service/msg_center/src/notify/message_notification.cpp | 3 +++ 2 files changed, 6 insertions(+), 2 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 ca5f7164d..e98fd091f 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/message/src/MessageModel.cpp @@ -130,9 +130,10 @@ extern "C" delete messageInfo; // 释放内存 // 发送信息进行弹窗 - if(uapi_dev_runtime_get_train_status() == 1) + if(uapi_dev_runtime_get_train_status()||uapi_dev_runtime_get_saveele_status()) { - //增加训练模式下,不弹窗 + //增加训练模式下,不弹窗 + //省电模式,不弹窗 return; } CustomEventPublish(TOPIC_EVENT_MESSAGENOTE, NULL, 0); diff --git a/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp b/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp index d948443f2..162c7f910 100644 --- a/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/notify/message_notification.cpp @@ -62,6 +62,9 @@ namespace OHOS { WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "MessageViewEventListener::OnDrag"); UNUSED(view); + NotificationManager::GetInstance()->StopNotify(); + // 点击关闭之后通知list进行刷新 + SendMsgToUIService(UI_UPDATE_MESSAGE_DATA, 0, nullptr, 0); return true; } -- 2.17.1