Call hide tooltip every recording cancel 95/162295/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 30 Nov 2017 06:36:23 +0000 (15:36 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 30 Nov 2017 06:37:54 +0000 (06:37 +0000)
Change-Id: I1a0c3ff7b94642e99dfbb410874159a58a6708ae
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
server/vcd_server.c

index 58b2f37..6e973f3 100755 (executable)
@@ -1632,6 +1632,17 @@ int vcd_server_mgr_cancel()
        if (VCD_STATE_READY == state) {
                SLOG(LOG_DEBUG, TAG_VCD, "[Server] Current state is READY");
                vcd_recorder_stop();
+
+               if (false == vcd_client_manager_get_exclusive()) {
+                       if (1 == vcd_config_get_command_type_enabled(VC_COMMAND_TYPE_WIDGET)) {
+                               int pid = vcd_client_widget_get_foreground_pid();
+                               if (-1 != pid) {
+                                       SLOG(LOG_DEBUG, TAG_VCD, "[Server] Request tooltip hide");
+                                       ecore_timer_add(0, __vcd_request_show_tooltip, (void*)false);
+                               }
+                       }
+               }
+
                vcdc_send_service_state(VCD_STATE_READY);
                return VCD_ERROR_NONE;
        }