Currently, the watch core doesn't check viewer visibility state before
removing pause timer. After this patch is applied, the watch core checks
whether the viewer is resumed or not.
Change-Id: Id1cd989ef0ada75751ece09c9a40be1bb60fa76b
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
__context.watch_visibility = WVS_PAUSE;
__add_pause_timer();
} else {
- __remove_pause_timer();
__context.watch_visibility = WVS_RESUME;
- if (__context.viewer_visibility == AUL_SCREEN_STATUS_RESUME)
+ if (__context.viewer_visibility == AUL_SCREEN_STATUS_RESUME) {
+ __remove_pause_timer();
__on_ui_base_resume(NULL);
- else
+ } else {
_D("Viewer is paused, do not resume watch");
+ }
}
}