#include <bundle_internal.h>
bt_share_appdata_t *app_state = NULL;
+bt_share_appdata_t app_data = {0,};
static void __bt_lang_changed_cb(app_event_info_h event_info, void *data)
{
ui_app_lifecycle_callback_s callback = {0,};
app_event_handler_h lang_changed_handler;
- bt_share_appdata_t ad = {0,};
- app_state = &ad;
+ app_state = &app_data;
callback.create = __app_create;
callback.terminate = __app_terminate;
callback.resume = __app_resume;
callback.app_control = __app_service;
- ui_app_add_event_handler(&lang_changed_handler, APP_EVENT_LANGUAGE_CHANGED, __bt_lang_changed_cb, &ad);
+ ui_app_add_event_handler(&lang_changed_handler, APP_EVENT_LANGUAGE_CHANGED, __bt_lang_changed_cb, &app_data);
DBG("ui_app_main() is called.");
- int ret = ui_app_main(argc, argv, &callback, &ad);
+ int ret = ui_app_main(argc, argv, &callback, &app_data);
if (ret != APP_ERROR_NONE) {
ERR("ui_app_main() is failed. err = %d", ret);
}
list_traverse = notification_list_get_next(list_traverse);
}
- if (success == 0 && fail == 0) {
+ if (success == 0 && fail == 0)
notification_delete_by_priv_id(app_id, NOTIFICATION_TYPE_NOTI, priv_id);
- } else {
+#if 0
+ else {
char str[BT_GLOBALIZATION_STR_LENGTH] = { 0 };
if (success == 1) {
stms_str = BT_STR_TR_1FILE_COPIED_STATUS;
notification_set_content(noti, str, NULL);
notification_update(noti);
}
-
+#endif
if (list_head != NULL) {
notification_free_list(list_head);
list_head = NULL;