static void __on_window_show(int type, void *event, void *data)
{
appcore_efl_base_window_on_show(type, event);
- appcore_efl_base_resume();
+ if (__context.viewer_visibility == AUL_SCREEN_STATUS_RESUME)
+ appcore_efl_base_resume();
+ else
+ _D("viewer is not resumed, do not resume watch");
}
static void __on_window_visibility(int type, void *event, void *data)
int width = 360;
int height = 360;
appcore_efl_base_ops ops = appcore_efl_base_get_default_ops();
+ char *viewer_visibility_str = NULL;
/* override methods */
ops.ui_base.base.create = __on_create;
if (kb) {
bundle_get_str(kb, "WATCH_WIDTH", &width_str);
bundle_get_str(kb, "WATCH_HEIGHT", &height_str);
+ bundle_get_str(kb, "WATCH_VIEWER_VISIBILITY",
+ &viewer_visibility_str);
if (width_str)
width = atoi(width_str);
if (height_str)
height = atoi(height_str);
+ if (viewer_visibility_str) {
+ __context.viewer_visibility =
+ atoi(viewer_visibility_str);
+ }
+
bundle_free(kb);
} else {
_E("failed to get launch argv");
__context.callback = *callback;
__context.width = width;
__context.height = height;
- __context.viewer_visibility = AUL_SCREEN_STATUS_RESUME;
__context.watch_visibility = WVS_UNKNOWN;
__context.ambient_mode = false;
__context.ambient_mode_skip_resume = false;