Change-Id: I91951ed555bce1879ba780f98e037521f6a8991a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
if (ambient) {
if (appcore_ui_base_is_resumed()) {
appcore_ui_base_on_pause();
+ if (__context.callback.pause)
+ __context.callback.pause(__context.data);
__context.ambient_mode_skip_resume = false;
} else {
__context.ambient_mode_skip_resume = true;
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);
}
/* Disable alarm */