Fix viewer visibility state bug 64/182664/1
authorhyunho <hhstark.kang@samsung.com>
Wed, 27 Jun 2018 02:52:02 +0000 (11:52 +0900)
committerhyunho <hhstark.kang@samsung.com>
Wed, 27 Jun 2018 02:52:02 +0000 (11:52 +0900)
Manually changed viewer visiblity should be changed even if
visibility can not be sent

Change-Id: I0950dad7e7f503c475f9056702fa393fca44f1a7
Signed-off-by: hyunho <hhstark.kang@samsung.com>
watch-control/src/control.c

index 993302608fe92fcb5fea989b5c7664a0c25df2be..4abdbe8295b04fe20471e5d6990383f0869440c5 100755 (executable)
@@ -751,6 +751,9 @@ static int __change_viewer_visibility(int visibility, bool update_cur_state)
        Evas_Object *watch;
        int r;
 
+       if (update_cur_state)
+               __viewer_visibility = visibility;
+
        if (__win == NULL) {
                _E("Window is NULL");
                __push_pending_queue(visibility);
@@ -774,8 +777,6 @@ static int __change_viewer_visibility(int visibility, bool update_cur_state)
                return -1;
        }
        _D("send watch control status to %s:%d", __watch_appid, visibility);
-       if (update_cur_state)
-               __viewer_visibility = visibility;
 
        return 0;
 }