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;
{
_W("_watch_core_pause");
+ /* clear pre resume flag */
+ __pre_resume_called = 0;
+
__context.watch_visibility = WVS_PAUSE;
/* Handling the ambient mode */
if (__context.ambient_mode)
__on_resume(NULL);
} else if (*state == AUL_SCREEN_STATUS_PAUSE) {
__on_pause(NULL);
- } else if (*state == AUL_SCREEN_STATUS_PRE_RESUME) {
+ } else if (*state == AUL_SCREEN_STATUS_PRE_RESUME
+ && __pre_resume_called == 0) {
__get_timeinfo(&timeinfo);
_D("call pre resume tick");
__on_time_tick(&timeinfo, NULL);
+ __pre_resume_called = 1;
}
if (timeinfo.timezone)