diff options
author | Hyunho Kang <hhstark.kang@samsung.com> | 2017-08-17 17:23:06 +0900 |
---|---|---|
committer | Hyunho Kang <hhstark.kang@samsung.com> | 2017-08-17 18:08:19 +0900 |
commit | ce3a831b2a1e33f03fe63a53c02b0ca3e4ad036a (patch) | |
tree | 3474425c8cdb6e5209aa9a32f7886ff1d314551c | |
parent | 31591273f2f3ae1d6e794fc7bb9c650dd7146491 (diff) | |
download | appcore-watch-accepted/tizen_3.0_common.tar.gz appcore-watch-accepted/tizen_3.0_common.tar.bz2 appcore-watch-accepted/tizen_3.0_common.zip |
Set viewer visibility when start appsubmit/tizen_3.0/20170817.090741accepted/tizen/3.0/wearable/20170818.001353accepted/tizen/3.0/tv/20170818.001320accepted/tizen/3.0/mobile/20170818.001335accepted/tizen/3.0/ivi/20170818.001408accepted/tizen/3.0/common/20170818.112424accepted/tizen_3.0_wearableaccepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_iviaccepted/tizen_3.0_common
Change-Id: I02467606b40683fdc562ac2aac8187d4ccc50b69
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
-rwxr-xr-x | src/appcore-watch.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/appcore-watch.c b/src/appcore-watch.c index 4e835f6..410233a 100755 --- a/src/appcore-watch.c +++ b/src/appcore-watch.c @@ -1218,7 +1218,10 @@ static Eina_Bool __show_cb(void *data, int type, void *event) _D("show %d %d", (unsigned int)ev->win, (unsigned int)ev->data[0]); - __do_app(WE_RESUME, &priv, NULL); + if (priv.viewer_visibility == AUL_SCREEN_STATUS_RESUME) + __do_app(WE_RESUME, &priv, NULL); + else + _D("viewer is not resumed, do not resume watch"); return ECORE_CALLBACK_RENEW; } @@ -1284,6 +1287,7 @@ static int __before_loop(struct watch_priv *watch, int argc, char **argv) bundle *kb = NULL; char *width_str = NULL; char *height_str = NULL; + char *viewer_visibility_str = NULL; int width = 360; int height = 360; @@ -1305,6 +1309,8 @@ static int __before_loop(struct watch_priv *watch, int argc, char **argv) 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); @@ -1312,6 +1318,9 @@ static int __before_loop(struct watch_priv *watch, int argc, char **argv) if (height_str) height = atoi(height_str); + if (viewer_visibility_str) + priv.viewer_visibility = atoi(viewer_visibility_str); + bundle_free(kb); } else { _E("failed to get launch argv"); |