From 07dbfcbffd9ef67590636e5da18f02780abfa9d8 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Mon, 6 Apr 2020 12:18:34 +0900 Subject: [PATCH] Fix alpm signal handler - Calls __on_ui_base_resume() function instead of registration callback function Change-Id: Ie785538a33e65cd1cb559ca441ab5dc8c846dd16 Signed-off-by: Hwankyu Jhun --- src/base/watch_base.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/watch_base.c b/src/base/watch_base.c index 76461c8..7f72822 100755 --- a/src/base/watch_base.c +++ b/src/base/watch_base.c @@ -151,6 +151,7 @@ static enum watch_state __state; 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) { @@ -434,9 +435,8 @@ static int __handling_ambient_mode(int ambient, void *data) _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 */ @@ -1355,4 +1355,4 @@ EXPORT_API int watch_base_ambient_get_extra(bundle **extra) *extra = bundle_dup(__context.extra); return APP_ERROR_NONE; -} \ No newline at end of file +} -- 2.7.4