- //fprintf(stderr, "[TIME] 5. app_create -> app_resume (first display) : %d msec\n", appcore_measure_time());
- //SETTING_TRACE("[TIME] 5. app_create -> app_resume (first display) : %d msec", appcore_measure_time());
- //fprintf(stderr, "[TIME] Total. aul_launch -> app_resume (first display) : %d msec\n", appcore_measure_time_from("APP_START_TIME"));
- //SETTING_TRACE("[TIME] Total. aul_launch -> app_resume (first display) : %d msec", appcore_measure_time_from("APP_START_TIME"));
+ int flight_mode = 0;
+ vconf_get_bool(VCONFKEY_TELEPHONY_FLIGHT_MODE, &flight_mode);
+ if (flight_mode)
+ {
+ if (ad->data_network) setting_disable_genlist_item(ad->data_network->item);
+ }
+
+ int call_status = VCONFKEY_CALL_OFF;
+ vconf_get_int(VCONFKEY_CALL_STATE, &call_status);
+ if (VCONFKEY_CALL_OFF != call_status)
+ {
+ if (ad->data_network) setting_disable_genlist_item(ad->data_network->item);
+ if (ad->data_wifi) setting_disable_genlist_item(ad->data_wifi->item);
+ //if (ad->data_mobileApp) setting_disable_genlist_item(ad->data_mobileApp->item);
+ }
+
+ /* for jumping view */
+ service_get_extra_data(service, "view_to_jump", &(ad->view_to_jump));
+ if(ad->view_to_jump)
+ {
+ SETTING_TRACE_DEBUG("view to jump is %s", ad->view_to_jump);
+ /* Jumping */
+ if(!safeStrCmp(ad->view_to_jump, KeyStr_Sounds))
+ {
+
+ SETTING_TRACE_DEBUG("Kill launched ug.");
+ if(ad->isInUGMode == TRUE && (safeStrCmp(ad->cur_loaded_ug, "setting-profile-efl") != 0))
+ {
+ ug_destroy_all();
+ ad->ug = NULL;
+ }
+ if(ad->isInUGMode == TRUE && (safeStrCmp(ad->cur_loaded_ug, "setting-profile-efl") == 0))
+ {
+ return;
+ }
+
+ struct ug_cbs *cbs = (struct ug_cbs *)calloc(1, sizeof(struct ug_cbs));
+ setting_retm_if(!cbs, "calloc failed");
+ cbs->layout_cb = setting_main_layout_ug_cb;
+ cbs->result_cb = setting_main_result_ug_cb;
+ cbs->destroy_cb = setting_main_destroy_ug_cb;
+ cbs->priv = (void *)ad;