void MsgCenterNotifyLowPowerAlarmProc(const Topic topic, Request* req)
{
//unused(req);
- unused(topic);
+ // unused(topic);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyProc:: LowPower Alarm !");
//if(req->data);
uint8 *x= (uint8 *)(req->data);
//消息通知
void MsgCenterNotifyMessageProc(const Topic topic, Request* req)
{
- unused(topic);
+ //unused(topic);
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyMessageProc !");
if (CheckPriority(topic)) {
void MsgCenterNotifySleepProc(const Topic topic, Request* req)
{
unused(req);
- unused(topic);
+ // unused(topic);
+ if (CheckPriority(topic))
+ {
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifySleepProc %d!",SleepModel::GetInstance().get_sleep_state());
{
NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_THREE);
}
- if (CheckPriority(topic))
- {
+
NotificationManager::GetInstance()->ShowNotify(showSleepNotify, (uint16_t)topic, true);
}
{
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyFindWatchProc !");
- FindWatchViewEventListener::GetInstance().SetFindWatchNotifyFlag(true);
- FindWatchViewEventListener::GetInstance().PopInterPlayMusic(nullptr);//播放铃声
- NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
- NotificationManager::GetInstance()->ShowNotify(showFindWatchNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ FindWatchViewEventListener::GetInstance().SetFindWatchNotifyFlag(true);
+ FindWatchViewEventListener::GetInstance().PopInterPlayMusic(nullptr);//播放铃声
+ NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
+ NotificationManager::GetInstance()->ShowNotify(showFindWatchNotify, (uint16_t)topic, true);
+ }
}
//取消查找手表通知
//喝水提醒通知
void MsgCenterNotifyDrinkReminderProc(const Topic topic, Request *req)
{
- unused(topic);
+ // unused(topic);
unused(req);
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyDrinkReminderProc !");
DrinkReminderViewEventListener::GetInstance().set_screen_on_and_vibration();
- NotificationManager::GetInstance()->ShowNotify(showDrinkReminderNotify, (uint16_t)topic, true);
+ if (CheckPriority(topic))
+ {
+ NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
+ NotificationManager::GetInstance()->ShowNotify(showDrinkReminderNotify, (uint16_t)topic, true);
+ }
}
//每日训练数据刷新
void MsgCenterNotifyActivityProc(const Topic topic, Request* req)
void MsgCenterNotifyInactivityProc(const Topic topic, Request *req)
{
WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "MsgCenterNotifyInactivityProc !");
- unused(topic);
+ //unused(topic);
#ifdef FD230
if(day_timestamp == 0)
{
{
if (CheckPriority(topic))
{
+ NotificationManager::GetInstance()->SetNotifyPriority(PRIORITY_TWO);
NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
}
}