[Bug fix] Modified Wi-Fi tethering pw entry 28/70128/1 accepted/tizen/common/20160519.191346 accepted/tizen/ivi/20160519.085210 accepted/tizen/mobile/20160519.085224 accepted/tizen/tv/20160519.085147 submit/tizen/20160519.014408
authorSeonah Moon <seonah1.moon@samsung.com>
Wed, 18 May 2016 07:55:25 +0000 (16:55 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Wed, 18 May 2016 07:57:43 +0000 (16:57 +0900)
pw entry is created twice when pw item is focused.
It makes entry work abnormal.

Change-Id: I6800bf3515d42e7bf39e0659dcad8ae8ad2d29e2
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
packaging/ug-setting-mobileap-efl.spec
src/mh_view_wifi_setup.c

index 4ec0283..83d685f 100755 (executable)
@@ -3,7 +3,7 @@
 
 Name:          ug-setting-mobileap-efl
 Summary:       Tethering UI Gadget Library
-Version:       1.0.134
+Version:       1.0.135
 Release:       1
 Group:         App/Network
 License:       Flora-1.1
index 8bd3111..93caa7a 100755 (executable)
@@ -464,7 +464,6 @@ static Evas_Object *__get_pw_entry(void *data, Evas_Object *parent)
        elm_entry_scrollable_set(entry, EINA_TRUE);
        elm_entry_password_set(entry, EINA_FALSE);
 
-       st->pw_entry = entry;
        evas_object_smart_callback_add(entry, "language,changed",
                        __pw_entry_language_changed_cb, ad);
 
@@ -499,7 +498,7 @@ static Evas_Object *__get_pw_entry(void *data, Evas_Object *parent)
                }
        }
 
-       elm_entry_input_panel_return_key_type_set(st->pw_entry,
+       elm_entry_input_panel_return_key_type_set(entry,
                        ELM_INPUT_PANEL_RETURN_KEY_TYPE_DONE);
 
        clr_btn = elm_button_add(entry);
@@ -522,11 +521,12 @@ static Evas_Object *__get_pw_entry(void *data, Evas_Object *parent)
        evas_object_event_callback_add(entry, EVAS_CALLBACK_SHOW,
                        __pw_entry_show_cb, NULL);
 
-//     elm_entry_editable_set(entry, EINA_TRUE);
        elm_object_focus_set(entry, EINA_TRUE);
        elm_entry_input_panel_show(entry);
        elm_object_part_content_set(parent, "elm.swallow.content", entry);
 
+       st->pw_entry = entry;
+
        __MOBILE_AP_FUNC_EXIT__;
        return st->pw_entry;
 }
@@ -949,14 +949,10 @@ static void __select_passphrase_item(void *data, Evas_Object *obj, void *event_i
        Elm_Object_Item *item = (Elm_Object_Item *)event_info;
        Evas_Object *layout = NULL;
        mh_appdata_t *ad = (mh_appdata_t *)data;
+       mh_wifi_setting_view_t *st = &ad->setup;
 
-       elm_genlist_item_selected_set(item, EINA_FALSE);
-
-       layout = elm_layout_add(obj);
-       evas_object_size_hint_weight_set(layout, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
-       __get_pw_entry(ad, layout);
+       elm_object_focus_set(st->pw_entry, EINA_TRUE);
 
-       evas_object_show(layout);
        __MOBILE_AP_FUNC_EXIT__;
        return;
 }