修复低电量关机提醒 3194/1 3194/head 3195/target/2
authorxue <2144439972@qq.com>
Fri, 6 Feb 2026 03:32:34 +0000 (11:32 +0800)
committerxue <2144439972@qq.com>
Fri, 6 Feb 2026 03:32:34 +0000 (11:32 +0800)
code/sdk/application/wearable/fd272/service/msg_center/src/msg_center_customer.cpp
code/sdk/application/wearable/fd272/service/msg_center/src/notify/charge_notification.cpp

index af70adf..8e9e857 100644 (file)
@@ -679,16 +679,16 @@ void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req)
     WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: LowPower Alarm !");
     uint8 *x= (uint8 *)(req->data);
     const power_display_svr_api_t *display_api = power_display_svr_get_api();
-    // if(*x==3)
-    // {
-    //     if (display_api->get_screen_state() != SCREEN_ON)
-    //     {   
-    //         display_api->turn_on_screen();  
-    //     }
-    //     display_api->set_screen_set_keepon_timeout(1000*5);
-    //     //倒计时结束后,直接执行关机动画
-    //     low_power_play();
-    // }
+    if(*x==3)
+    {
+        if (display_api->get_screen_state() != SCREEN_ON)
+        {   
+            display_api->turn_on_screen();  
+        }
+        display_api->set_screen_set_keepon_timeout(1000*5);
+        //倒计时结束后,直接执行关机动画
+        low_power_play();
+    }
     if(*x==0)
     {
         //提醒低电充电
index 6747b5f..6d8128f 100644 (file)
@@ -432,6 +432,7 @@ namespace OHOS
 
     void low_power_play()
     {
+        osTimerStop(low_power_timer);
         if(group)
         group->SetVisible(true);
         UIImageAnimatorView::AnimatorStopListener *stoplistener =  static_cast<UIImageAnimatorView::AnimatorStopListener *>(lowppowrAnimatorStopListener::GetInstance());