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)
{