ret = utilx_grab_key(disp, xwin, KEY_VOLUMEDOWN, TOP_POSITION_GRAB);
retvm_if(ret < 0, -1, "Failed to grab key down\n");
+ retvm_if(ret == 1, -1, "Already grab\n");
ret = utilx_grab_key(disp, xwin, KEY_VOLUMEUP, TOP_POSITION_GRAB);
retvm_if(ret < 0, -1, "Failed to grab key up\n");
+ retvm_if(ret == 1, -1, "Already grab\n");
ecore_event_handler_add(ECORE_EVENT_KEY_DOWN, _key_press_cb, ad);
ecore_event_handler_add(ECORE_EVENT_KEY_UP, _key_release_cb, ad);
if (status == 0) {
if(ad->win){
_D("window exists", __func__);
- _grab_key(ad);
+ if(_grab_key(ad)==-1)return -1;
_handle_bundle(b, ad);
_rotate_func(ad);
elm_win_indicator_mode_set(ad->win, ELM_WIN_INDICATOR_HIDE);
noti = notification_new(NOTIFICATION_TYPE_NOTI, NOTIFICATION_GROUP_ID_NONE, NOTIFICATION_PRIV_ID_NONE);
retvm_if(noti == NULL, 0, "notification_new is failed\n");
+ noti_err = notification_set_display_applist(noti, NOTIFICATION_DISPLAY_APP_TICKER);
+ retvm_if(noti == NULL, 0, "notification_set_display_applist\n");
+
noti_err = notification_set_application(noti, PKGNAME);
retvm_if(noti_err != NOTIFICATION_ERROR_NONE, 0, "Fail to notification_set_application : %d\n", noti_err);
}
ad->flag_launching = EINA_TRUE;
- _app_reset(b, data);
+ if(_app_reset(b, data) == -1){
+ _D("_app_reset() if failed\n");
+ ad->flag_launching = EINA_FALSE;
+ return -1;
+ }
/* appcore measure time example */
printf("from AUL to %s(): %d msec\n", __func__,
appcore_measure_time_from("APP_START_TIME"));
.reset = app_reset,
};
+
/* appcore measure time example */
printf("from AUL to %s(): %d msec\n", __func__,
appcore_measure_time_from("APP_START_TIME"));
#endif
#if !defined(RESDIR)
-# define RESDIR "/usr/apps/org.samsung.volume/res"
+# define RESDIR "/usr/apps/org.tizen.volume/res"
#endif
#if !defined(LOCALEDIR)