static watch_app_time_tick_resolution_e app_tick_type = WATCH_APP_TIME_TICKS_PER_SECOND;
static int app_tick_resolution = 1;
static aul_app_com_connection_h __conn_viewer_state;
-static bool __pre_resume_called = 0;
struct app_event_handler {
app_event_type_e type;
return APP_ERROR_NONE;
}
- /* clear pre resume flag */
- __pre_resume_called = 0;
-
/* Handling the ambient mode */
if (__context.ambient_mode)
__context.ambient_mode_skip_resume = 1;
__on_resume(NULL);
} else if (*state == AUL_SCREEN_STATUS_PAUSE) {
__on_pause(NULL);
- } else if (*state == AUL_SCREEN_STATUS_PRE_RESUME
- && __pre_resume_called == 0) {
+ } else if (*state == AUL_SCREEN_STATUS_PRE_RESUME) {
_D("call pre resume tick");
__on_pre_resume(NULL);
- __pre_resume_called = 1;
}
if (timeinfo.timezone)
static void __lcd_on_handler(void *user_data)
{
- if (__pre_resume_called == 0) {
- _D("Call pre resume tick");
- __on_pre_resume(NULL);
- __pre_resume_called = 1;
- }
+ _D("Call pre resume tick");
+ __on_pre_resume(NULL);
}
EXPORT_API int watch_app_main(int argc, char **argv,