summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHwankyu Jhun <h.jhun@samsung.com>2017-07-10 09:28:15 +0900
committerHwankyu Jhun <h.jhun@samsung.com>2017-07-10 09:29:22 +0900
commit6f83d5aa9c811f86a01514fbb9f0735ae0139d2d (patch)
tree3282612e4406076b05280558b0542c99d3b8fb49
parent670919e59c018eabfcab261bd5093a1fa13c8a4e (diff)
downloadappcore-watch-6f83d5aa9c811f86a01514fbb9f0735ae0139d2d.tar.gz
appcore-watch-6f83d5aa9c811f86a01514fbb9f0735ae0139d2d.tar.bz2
appcore-watch-6f83d5aa9c811f86a01514fbb9f0735ae0139d2d.zip
If the viewer doesn't manage the watch visibility manullay, the watch-application cannot go to resume state when the application is paused. Because, the viewer_visibility value is the unknown value. This patch is to fix the initial value. Change-Id: I1b265cca0e63aae402e9a4ad4ab0bc58f8b3949b Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
-rwxr-xr-xsrc/appcore-watch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/appcore-watch.c b/src/appcore-watch.c
index 1f9301f..9bcc6be 100755
--- a/src/appcore-watch.c
+++ b/src/appcore-watch.c
@@ -401,7 +401,7 @@ static int __set_data(struct watch_priv *watch, const char *appid,
watch->appid = strdup(appid);
watch->name = __get_domain_name(appid);
watch->pid = getpid();
- watch->viewer_visibility = -1;
+ watch->viewer_visibility = AUL_SCREEN_STATUS_RESUME;
watch->watch_visibility = WVS_UNKNOWN;
return 0;