From: Caisking <3449750381@qq.com> Date: Wed, 9 Oct 2024 01:37:26 +0000 (+0800) Subject: 消息:增加省电模式不进行消息弹窗 X-Git-Tag: release_V1.2.70_20241020_135402~126 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=98de5fede848b405408e96f42d9a61727ecb2e56;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 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; }