}
else
{
- NotificationManager::GetInstance()->ShowNotify(ShowChargeingNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ NotificationManager::GetInstance()->ShowNotify(ShowChargeingNotify, (uint16_t)topic, true);
+ }
}
}
display_api->set_screen_set_keepon_timeout(1000*5);
set_lowpower_falg(0);
- NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
- NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
+ NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true);
+ }
}
else
{
set_lowpower_falg(1);
if (NotificationManager::GetInstance()->HasNotifyShowing())
NotificationManager::GetInstance()->StopNotify();
-
+ if (CheckPriority(topic))
+ {
NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_ONE);
NotificationManager::GetInstance()->ShowNotify(showlowpowerNotify, (uint16_t)topic, true);
+ }
}
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyMessageProc !");
if (CheckPriority(topic)) {
+ NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE);
NotificationManager::GetInstance()->ShowNotify(showMessageNotify, (uint16_t)topic, true);
}
}
{
NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE);
}
-
- NotificationManager::GetInstance()->ShowNotify(showSleepNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ NotificationManager::GetInstance()->ShowNotify(showSleepNotify, (uint16_t)topic, true);
+ }
}
#endif
{
return;
}
- MotionRecognitionViewEventListener::GetInstance().SetMotionTypeId(*motionType);
- NotificationManager::GetInstance()->ShowNotify(showMotionRecognitionNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ MotionRecognitionViewEventListener::GetInstance().SetMotionTypeId(*motionType);
+ NotificationManager::GetInstance()->ShowNotify(showMotionRecognitionNotify, (uint16_t)topic, true);
+ }
+
}
void MsgCenterNotifyInactivityProc(const Topic topic, Request *req)
case INACTIVITY_MODE_SEDENTARY_OUTPUT:
if(cywee_Inactivity_Info->status == 1)
{
- NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
+ }
}
else if(cywee_Inactivity_Info->status==9)
{