static void GoalviewShowCallBack(int data)
{
GoalviewShowCallBack_FALG--;
- if(GoalviewShowCallBack_FALG)
+ if(GoalviewShowCallBack_FALG>=7)
{
if (true != OHOS::ConfigModel::GetInstance()->GetDnotdisturb() && (!uapi_sleep_mode_flag_get()))
{
}
if(GoalviewShowCallBack_FALG==0)
{
- if(GoalviewShow_timer)
- {
- osTimerStop(GoalviewShow_timer);
- osStatus_t ret = osTimerDelete(GoalviewShow_timer);
- if (ret != osOK) {
- WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Disatransmitting_timer failed ret = %lx!", ret);
- return;
- }
- GoalviewShow_timer = nullptr;
- }
+
+ NotificationManager::GetInstance()->StopNotify();
+
+ // if(GoalviewShow_timer)
+ // {
+ // osTimerStop(GoalviewShow_timer);
+ // osStatus_t ret = osTimerDelete(GoalviewShow_timer);
+ // if (ret != osOK) {
+ // WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Disatransmitting_timer failed ret = %lx!", ret);
+ // return;
+ // }
+ // GoalviewShow_timer = nullptr;
+ // }
}
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "hintdialtimerCallBack ??????!");
uint32_t tick;
osStatus_t retTimer;
- GoalviewShowCallBack_FALG=3;
+ GoalviewShowCallBack_FALG=10;
GoalviewShow_timer = osTimerNew((osTimerFunc_t)GoalviewShowCallBack, osTimerPeriodic, NULL, NULL);
tick =osMs2Tick(1000);// osMs2Tick(1000);
retTimer = osTimerStart(GoalviewShow_timer, tick);