From: hcj <1224667075@qq.com> Date: Sat, 16 Mar 2024 09:56:20 +0000 (+0800) Subject: test_cat1 X-Git-Tag: release_V1.2.70_20241020_135402~1274^2~9^2~1^2~1 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=829b5c9e266cd726e99eb0c4fa7831ccfab9234b;p=mirrors%2FFD230.git test_cat1 --- 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 885cc513e..1e062ee3b 100755 --- 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 @@ -171,6 +171,13 @@ void MsgCenterNotifyChargePlugProc(const Topic topic, Request* req) unused(topic); WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: CHarger Plug !"); DialModelCharge::GetInstance()->UpdateChargeStuaut(1); + + testCHANINGView *t=testCHANINGView::GetInstance(); + if(t!=NULL) + { + t->ChangeViewcolor(true); + } + } void MsgCenterNotifyChargeUnPlugProc(const Topic topic, Request* req) @@ -179,6 +186,11 @@ void MsgCenterNotifyChargeUnPlugProc(const Topic topic, Request* req) unused(topic); WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: CHarger UnPlug !"); DialModelCharge::GetInstance()->UpdateChargeStuaut(0); + testCHANINGView *t=testCHANINGView::GetInstance(); + if(t!=NULL) + { + t->ChangeViewcolor(false); + } } #endif void MsgCenterNotifyNextDayProc(const Topic topic, Request* req) @@ -465,7 +477,9 @@ void MsgCenterNotifyCat1SignalUpdateProc(const Topic topic, Request* req) tokbuf=strtok(NULL,","); cat1_msg_T.signal=atoi(tokbuf); WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d",cat1_msg_T.signal); - testcat1View::GetInstance()->setcat1msg(cat1_msg_T); + testcat1View* t=testcat1View::GetInstance(); + if(t!=NULL) + t->setcat1msg(cat1_msg_T); } else if(strcmp(tokbuf,"pyVer")==0) { @@ -479,7 +493,9 @@ void MsgCenterNotifyCat1SignalUpdateProc(const Topic topic, Request* req) cat1_ver_T.modem_version=(char*)malloc(strlen(tokbuf)); strcpy( cat1_ver_T.modem_version,tokbuf); - testcat1View::GetInstance()->setcat1vermsg(cat1_ver_T); + testcat1View* t=testcat1View::GetInstance(); + if(t!=NULL) + t->setcat1vermsg(cat1_ver_T); }