WEARABLE_LOGI(WEARABLE_LOG_MODULE_APP, "cywee_Inactivity_Info->output_number = %d", cywee_Inactivity_Info->output_number);
- static int interval = 0;//久坐间隔时间
switch (cywee_Inactivity_Info->output_number)
{
case INACTIVITY_MODE_SEDENTARY_OUTPUT:
if(cywee_Inactivity_Info->status == 1)
{
- //NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
- //根据久坐间隔时间和是否在设置的提醒时间段内判断是否弹出久坐视图
- interval++;
- if( interval % SedentaryReminderViewEventListener::GetInstance().GetIntervalTime() == 0){
- SedentaryReminderViewEventListener::GetInstance().SetSedentaryReminderNoteIntervalTime(interval);
- NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
- }
+ NotificationManager::GetInstance()->ShowNotify(showSedentaryReminderNotify, (uint16_t)topic, true);
}
else if(cywee_Inactivity_Info->status==9)
{
SedentaryReminderNoteLabel->SetTextId(STR_SEDENTARY_REMINDER_NOTE);
#endif
// UpdateLabel(SedentaryReminderNoteLabel,"1",STR_SEDENTARY_REMINDER_NOTE);
+ SedentaryReminderViewEventListener::GetInstance().SetSedentaryReminderNoteIntervalTime(SedentaryReminderViewEventListener::GetInstance().GetIntervalTime());
SedentaryReminderNoteLabel->SetLineBreakMode(UILabel::LINE_BREAK_WRAP);
SedentaryReminderNoteLabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER);
SedentaryReminderNoteLabel->SetFont(DEFAULT_VECTOR_FONT_FILENAME, 30);