char buf[__SETTING_BUF_SIZE__] = {0,};
char *font_setting = "<text_class=tizen><align=center>%s</align></text_class>";
- snprintf(buf, sizeof(buf) - 1, font_setting, _("WDS_ST_TPOP_FLIGHT_MODE_DISABLES_CALLS_MESSAGING_AND_ALL_CONNECTIONS_TO_USE_WI_FI_AND_BLUETOOTH_GO_TO_SETTINGS"));
+ if (is_supported_telephony)
+ snprintf(buf, sizeof(buf) - 1, font_setting, _("WDS_ST_TPOP_FLIGHT_MODE_DISABLES_CALLS_MESSAGING_AND_ALL_CONNECTIONS_TO_USE_WI_FI_AND_BLUETOOTH_GO_TO_SETTINGS"));
+ else
+ snprintf(buf, sizeof(buf) - 1, font_setting, "Flight mode disables all connections. To use Wi-Fi and Bluetooth, go to Settings.");
Evas_Object *layout;
layout = elm_layout_add(popup);
for (idx = 0; idx < CONNECT_TOP_MENU_SIZE; idx++) {
if(!is_supported_telephony) {
if(connection_menu_its[idx].type == SETTING_CONNECTION_DATAUSAGE ||
- connection_menu_its[idx].type == SETTING_CONNECTION_MOBILE_NETWORKS ||
- connection_menu_its[idx].type == SETTING_CONNECTION_FLIGHT_MODE)
+ connection_menu_its[idx].type == SETTING_CONNECTION_MOBILE_NETWORKS)
continue;
}
text_f->func.text_get = _gl_found_network_operator_title_get;
text_f->func.del = _mobile_networks_gl_del;
- for (idx = 0; idx < g_plmn_info.networks_count; idx++) {
+ int net_count = (int)g_plmn_info.networks_count;
+ for (idx = 0; idx < net_count; idx++) {
itc_tmp = text_f;