demo: Add code to unregister vconf notification 64/182764/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 28 Jun 2018 01:09:28 +0000 (10:09 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 28 Jun 2018 01:09:28 +0000 (10:09 +0900)
Change-Id: I546bc1569b3077088409acae5c76e3285e243aed
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
ism/demos/isf_demo_efl.cpp

index da18a12..512ef68 100644 (file)
@@ -396,7 +396,6 @@ static int app_create (void *data)
 
     vconf_notify_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb, NULL);
 
-
     ad->key_down_handler = ecore_event_handler_add (ECORE_EVENT_KEY_DOWN, _keydown_event, ad);
     ad->key_up_handler = ecore_event_handler_add (ECORE_EVENT_KEY_UP, _keyup_event, ad);
 
@@ -413,6 +412,8 @@ static int app_exit (void *data)
     struct appdata *ad = (struct appdata *)data;
     if (ad == NULL) return -1;
 
+    vconf_ignore_key_changed (VCONFKEY_ISF_INPUT_PANEL_STATE, input_panel_state_changed_cb);
+
     if (ad->key_down_handler) {
         ecore_event_handler_del (ad->key_down_handler);
         ad->key_down_handler = NULL;