(1) duplicated naviframe item - app_control created what app_create created.
So there were two pushed same(duplicated) naviframe items.
(2) i18n - The message ID was used without using gettext
Change-Id: Ib25f543d80337af1ef0fd9ab1d634f93206dd6b6
elm_object_part_content_set(pObj_layout, "elm.genlist", pObj_genlist);
Elm_Object_Item *pObjItem_nf = NULL;
- pObjItem_nf = elm_naviframe_item_push(ad->pObj_nf, "IDS_ST_BODY_ACCESSIBILITY", NULL, NULL, pObj_layout, "empty");
+ pObjItem_nf = elm_naviframe_item_push(ad->pObj_nf, access_gettext("IDS_ST_BODY_ACCESSIBILITY"), NULL, NULL, pObj_layout, "empty");
elm_naviframe_item_title_enabled_set(pObjItem_nf, EINA_FALSE, EINA_FALSE);
elm_object_item_domain_text_translatable_set(pObjItem_nf, SETTING_ACCESSIBILITY_PACKAGE_NAME, EINA_TRUE);
elm_naviframe_item_pop_cb_set(pObjItem_nf, __setting_accessibility_menu_naviframe_pop_cb, NULL); // pop callback
elm_object_part_content_set(pObj_layout, "elm.genlist", pObj_genlist);
Elm_Object_Item *pObjItem_nf = NULL;
- pObjItem_nf = elm_naviframe_item_push(ad->pObj_nf, "IDS_ST_HEADER_VISION", NULL, NULL, pObj_layout, "empty");
+ pObjItem_nf = elm_naviframe_item_push(ad->pObj_nf, access_gettext("IDS_ST_HEADER_VISION"), NULL, NULL, pObj_layout, "empty");
elm_naviframe_item_title_enabled_set(pObjItem_nf, EINA_FALSE, EINA_FALSE);
elm_object_item_domain_text_translatable_set(pObjItem_nf, SETTING_ACCESSIBILITY_PACKAGE_NAME, EINA_TRUE);
elm_naviframe_item_pop_cb_set(pObjItem_nf, __setting_accessibility_vision_naviframe_pop_cb, NULL);
DBG("API() entered.");
- __setting_accessibility_create_common_view(ad);
- setting_accessibility_menu_create_view(ad);
elm_win_activate(ad->pObj_win_main);
}
app_event_handler_h handlers[5] = {NULL, };
event_callback.create = app_create;
+ event_callback.app_control = app_control;
+ event_callback.resume = app_resume;
event_callback.terminate = app_terminate;
event_callback.pause = app_pause;
- event_callback.resume = app_resume;
- event_callback.app_control = app_control;
ui_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, ui_app_low_battery, &ad);
ui_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, ui_app_low_memory, &ad);