diff options
author | Dongchul Lim <dc7.lim@samsung.com> | 2013-04-24 15:26:00 +0900 |
---|---|---|
committer | Dongchul Lim <dc7.lim@samsung.com> | 2013-04-24 15:26:00 +0900 |
commit | 6b7f066ed6235914480378a4b9fd17483b6e3e01 (patch) | |
tree | 4c96f3b8f25315025d28dc485eff165d68b26de5 /src | |
parent | 012e532fbd36d0faf08c419c991cd5763a485875 (diff) | |
download | pwlock-6b7f066ed6235914480378a4b9fd17483b6e3e01.tar.gz pwlock-6b7f066ed6235914480378a4b9fd17483b6e3e01.tar.bz2 pwlock-6b7f066ed6235914480378a4b9fd17483b6e3e01.zip |
Fix for TREL-220:No way to confirm pin code input in SIM PIN Lock screensubmit/tizen_2.1/20130424.223536accepted/tizen_2.1/20130425.022730
Diffstat (limited to 'src')
-rwxr-xr-x | src/ui.c | 39 |
1 files changed, 23 insertions, 16 deletions
@@ -525,27 +525,27 @@ static void _dial_cb(void *data, Evas_Object * obj, void *e) _DBG("%s,%d", __func__, __LINE__); struct appdata *ad = data; - /* apply button insensitive */ - elm_object_disabled_set(ad->elm_button_dial, EINA_TRUE); - _imf_context_input_panel_hide(ad); - - ad->previous_ui_type = ad->ui_type; - - if(ad->layout_entry) { - elm_entry_input_panel_enabled_set(_editfield_entry_get(ad->layout_entry), - EINA_FALSE); + if (!ad) { + return; } - if(ad->layout_second_entry) { - elm_entry_input_panel_enabled_set(_editfield_entry_get(ad->layout_second_entry), - EINA_FALSE); - } + service_h service; + service_create(&service); - if (show_dialer(ad) == 0) { - elm_object_disabled_set(ad->elm_button_dial, EINA_FALSE); - ad->ui_type = ad->previous_ui_type; + if (!service) { return; } + + set_win_prop(ad, ECORE_X_WINDOW_TYPE_NORMAL); + +// To-Do : In here, we have to set an appropriate parameter for emergency call mode. +// However, current ref. dialer app control does not support emergency mode, +// so, we have to wait till dialer app control support emergency call mode. + + service_set_operation(service,SERVICE_OPERATION_DIAL); + service_send_launch_request(service, NULL, NULL); + + service_destroy(service); } static void _pp_rsp_ok_cb(void *data, Evas_Object * e, void *ei) @@ -909,6 +909,7 @@ void load_main(struct appdata *ad, int ui_type) _DBG("load_main ad->ui_type = %d", ad->ui_type); +#if 0 // This code is temporarily disabled since dialer app control does not provide emergency call mode bt_dial = elm_button_add(ad->elm_navigation_frame); //elm_object_style_set(bt_dial, "naviframe/title/default"); evas_object_size_hint_weight_set(bt_dial, EVAS_HINT_EXPAND, @@ -919,6 +920,7 @@ void load_main(struct appdata *ad, int ui_type) evas_object_smart_callback_add(bt_dial, "clicked", _dial_cb, ad); ad->elm_button_dial = bt_dial; evas_object_show(bt_dial); +#endif bt_done = elm_button_add(ad->elm_navigation_frame); //elm_object_style_set(bt_done, "naviframe/title/default"); @@ -933,10 +935,13 @@ void load_main(struct appdata *ad, int ui_type) elm_object_disabled_set(bt_done, EINA_TRUE); + elm_naviframe_item_pop(ad->elm_navigation_frame); elm_naviframe_item_push(ad->elm_navigation_frame, _get_header(ui_type), NULL, NULL, ad->layout_contents, NULL); +#if 0 // This code is temporarily disabled since dialer app control does not provide emergency call mode elm_object_part_content_set(ad->layout_contents, "button.select.emergency", bt_dial); +#endif elm_object_part_content_set(ad->layout_contents, "button.select.done", bt_done); ad->ui_type = ui_type; @@ -1689,6 +1694,7 @@ int show_finish(struct appdata *ad) { return 1; } +#if 0 int show_dialer(struct appdata *ad) { _DBG("%s,%d", __func__, __LINE__); @@ -1727,6 +1733,7 @@ int show_dialer(struct appdata *ad) evas_object_show(ad->win); return 1; } +#endif void show_popup(struct appdata *ad, const char *mesg, Eina_Bool mode) { |