static void __on_ambient_tick(void *watchtime, void *data);
static void __on_ambient_changed(int ambient, void *data);
static void __on_time_tick(void *watchtime, void *data);
+static int __on_ui_base_resume(void *data);
static const char *__error_to_string(app_error_e error)
{
_D("Resume check: %d", __context.ambient_mode_skip_resume);
if (!__context.ambient_mode_skip_resume) {
_D("Call the resume after ambient mode changed");
- appcore_ui_base_resume();
- if (__context.callback.resume)
- __context.callback.resume(__context.data);
+ appcore_ui_base_on_resume();
+ __on_ui_base_resume(NULL);
}
/* Disable alarm */
*extra = bundle_dup(__context.extra);
return APP_ERROR_NONE;
-}
\ No newline at end of file
+}