取消多余电量提醒
authorxue <2144439972@qq.com>
Wed, 5 Nov 2025 06:22:31 +0000 (14:22 +0800)
committerxue <2144439972@qq.com>
Wed, 5 Nov 2025 06:22:31 +0000 (14:22 +0800)
code/sdk/application/wearable/ln/service/msg_center/src/msg_center_customer.cpp

index c995e78..30089ac 100644 (file)
@@ -392,29 +392,7 @@ void MsgCenterNotifyLowpowerProc(const Topic topic, Request* req)
         WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyLowpowerProc: display_api function pointers are invalid");
         return;
     }
-    if(alarm_type == 0)
-    {
-        //提醒低电充电
-         if (display_api->get_screen_state() != SCREEN_ON)
-        {   
-            display_api->turn_on_screen();  
-        }
-        display_api->set_screen_set_keepon_timeout(1000*2);
-
-        ThunderBirdMainView *mainView = ThunderBirdMainView::GetInstance();
-        if (mainView != nullptr) {
-            ThunderBirdModel::GetInstance()->StartReminderHideTimer(1000);
-            mainView->ChangeThunderBirdReminderView(THUNDERBIRD_REMINDERVIEW); // 不走ChangeView
-            ThunderBirdReminderView *reminderView = ThunderBirdReminderView::GetInstance();
-            if (reminderView != nullptr)
-            {
-                reminderView->Show(ThunderBirdReminderView::THUNDERBIRD_REMINDERVIEW_LOW_BATTERY);
-            }
-        } else {
-            WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyLowpowerProc: ThunderBirdMainView::GetInstance() returned null");
-        }
-    }
-    else
+    if(alarm_type != 0)
     {
         if (display_api->get_screen_state() != SCREEN_ON)
         {