Mobile networks 96/117596/1
authorRadek Kintop <r.kintop@samsung.com>
Mon, 6 Mar 2017 17:26:31 +0000 (18:26 +0100)
committerRadek Kintop <r.kintop@samsung.com>
Mon, 6 Mar 2017 17:26:31 +0000 (18:26 +0100)
- Fix: crash when reentering 'Service providers' after networks had been listed

Change-Id: Ia338920a91328eb233254af258a0dc73938939c4
Signed-off-by: Radek Kintop <r.kintop@samsung.com>
setting-network/src/setting-network-select-network.c

index 29aaf6e916d9763c6cf75672385183f6600d3168..ab470a9eeea415606e652b2fdddba1b14eb945d7 100644 (file)
@@ -651,6 +651,7 @@ static void _tel_get_selected_network_cb(TapiHandle *handle, int result, void *d
        int i = 0;
        int found_index = -1;
        TelNetworkIdentity_t *network_list = &s_info.plmn_info[s_info.sim_selected].network_list[0];
+
        int num = s_info.plmn_info[s_info.sim_selected].networks_count;
        int len = strlen(network->plmn);
        if (!network) {
@@ -667,10 +668,7 @@ static void _tel_get_selected_network_cb(TapiHandle *handle, int result, void *d
        }
 
        elm_radio_value_set(s_info.chk_sel, TAPI_NETWORK_SELECTIONMODE_MANUAL + found_index + 1);
-       Elm_Object_Item* item = elm_genlist_nth_item_get(s_info.genlist_sel_network, TAPI_NETWORK_SELECTIONMODE_MANUAL + found_index + 1);
-       Setting_GenGroupItem_Data* item_data = elm_object_item_data_get(item);
-       int sel = elm_radio_value_get(item_data->rgd);
-       SETTING_TRACE("rgd=%s, index=%d; sle=%d", evas_object_type_get(s_info.chk_sel), TAPI_NETWORK_SELECTIONMODE_MANUAL + found_index + 1, sel);
+       SETTING_TRACE("rgd=%s, index=%d;", evas_object_type_get(s_info.chk_sel), TAPI_NETWORK_SELECTIONMODE_MANUAL + found_index + 1);
        elm_genlist_realized_items_update(s_info.genlist_sel_network);
        SETTING_TRACE_END;
 }