From a70b46928f12ccf390fe0384aa0e359b2e817aa9 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 22 Oct 2024 16:17:30 +0800 Subject: [PATCH] =?utf8?q?=E5=85=85=E7=94=B5=EF=BC=9A=E5=A2=9E=E5=8A=A0?= =?utf8?q?=E8=BF=90=E5=8A=A8=E4=B8=8D=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../service/msg_center/src/msg_center_customer.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 3a58e6760..646c1058a 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 @@ -427,7 +427,6 @@ void MsgCenterNotifyChargePlugProc(const Topic topic, Request* req) unused(req); //unused(topic); WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: CHarger Plug !"); - const power_display_svr_api_t *display_api = power_display_svr_get_api(); if (display_api->get_screen_state() != SCREEN_ON) { @@ -441,7 +440,13 @@ void MsgCenterNotifyChargePlugProc(const Topic topic, Request* req) if(PullUpDownView::GetInstance()){ PullUpDownView::GetInstance()->UpdateBatteryProcess(); } -/* ---------------------------------- 充电弹窗 ---------------------------------- */ + /* ---------------------------------- 充电弹窗 + * ---------------------------------- */ + if (uapi_dev_runtime_get_train_status()) { + WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: CHarger Plug ! but train status is true"); + return ; + } + testCHANINGView *t=testCHANINGView::GetInstance(); if(t!=NULL) { -- 2.17.1