Fix alpm signal handler 42/229842/1
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 6 Apr 2020 03:18:34 +0000 (12:18 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 6 Apr 2020 03:18:34 +0000 (12:18 +0900)
- Calls __on_ui_base_resume() function instead of registration callback function

Change-Id: Ie785538a33e65cd1cb559ca441ab5dc8c846dd16
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/base/watch_base.c

index 76461c8..7f72822 100755 (executable)
@@ -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
+}