Fix issue im_setting_selector is not terminated after pressing back button 33/208933/2
authorInhong Han <inhong1.han@samsung.com>
Mon, 1 Jul 2019 08:04:38 +0000 (17:04 +0900)
committerInhong Han <inhong1.han@samsung.com>
Mon, 1 Jul 2019 10:21:52 +0000 (19:21 +0900)
Change-Id: Id6a9e057d20880f6118e4ded52714ee4ae3202b6

im_setting_selector/input_method_setting_selector_ui.cpp

index 9cdd6b6..69637e2 100644 (file)
@@ -440,6 +440,12 @@ static Evas_Object *im_setting_selector_conform_create(Evas_Object *parentWin)
     return conform;
 }
 
+static Eina_Bool _naviframe_pop_cb(void *data, Elm_Object_Item *it)
+{
+    ui_app_exit();
+    return EINA_FALSE;
+}
+
 static void im_setting_selector_screen_create(void *data)
 {
     appdata *ad = NULL;
@@ -486,7 +492,8 @@ static void im_setting_selector_screen_create(void *data)
     elm_radio_state_value_set(group_radio, g_active_ime_id);
     elm_radio_value_set(group_radio, g_active_ime_id);
     elm_genlist_item_class_free(ttc);
-    elm_naviframe_item_push(ad->naviframe, NULL, NULL, NULL, genlist, "empty");
+    Elm_Object_Item *navi_it = elm_naviframe_item_push(ad->naviframe, NULL, NULL, NULL, genlist, "empty");
+    elm_naviframe_item_pop_cb_set(navi_it, _naviframe_pop_cb, ad);
 }
 #endif