From 6e8addf3fa4817da65c56b0de1b6d0131c51a1f3 Mon Sep 17 00:00:00 2001 From: Hyejin Kim Date: Mon, 17 Sep 2012 13:38:38 +0900 Subject: [PATCH] fix to check sim card type correctly --- setting-security/src/setting-security-sim-settings.c | 2 +- setting-security/src/setting-security.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/setting-security/src/setting-security-sim-settings.c b/setting-security/src/setting-security-sim-settings.c index 1d4b75c..580bd55 100755 --- a/setting-security/src/setting-security-sim-settings.c +++ b/setting-security/src/setting-security-sim-settings.c @@ -260,7 +260,7 @@ static void get_pin_lock_info_cb(TapiHandle *handle, int result, void *data, voi tapi_ret = tel_get_sim_type(ad->handle, &sim_card); SETTING_TRACE("SIM Type is %d", (int)sim_card); - if (sim_card == (TelSimCardType_t) SETTING_TAPI_UNKNOWN_SIM_TYPE) { + if (sim_card == (TelSimCardType_t) TAPI_SIM_CARD_TYPE_UNKNOWN) { SETTING_TRACE_DEBUG ("%s*** [ERR] tel_get_sim_type. sim_card=%d ***%s", SETTING_FONT_RED, sim_card, SETTING_FONT_BLACK); diff --git a/setting-security/src/setting-security.c b/setting-security/src/setting-security.c index 0d8baad..f813900 100755 --- a/setting-security/src/setting-security.c +++ b/setting-security/src/setting-security.c @@ -210,6 +210,9 @@ static void *setting_security_ug_on_create(ui_gadget_h ug, if (TAPI_API_SUCCESS != tel_get_sim_facility(securityUG->handle, TAPI_SIM_LOCK_SC, setting_security_sim_get_facility_cb, securityUG)) { SETTING_TRACE_ERROR("*** [ERR] tel_get_sim_facility(pin1). ***"); } + if (TAPI_API_SUCCESS != tel_get_sim_facility(securityUG->handle, TAPI_SIM_LOCK_FD, setting_security_sim_get_facility_cb, securityUG)) { + SETTING_TRACE_ERROR("*** [ERR] tel_get_sim_facility(pin2). ***"); + } } setting_view_node_set_cur_view(&setting_view_security_main); -- 2.34.1