} else {
_unset_notification_level(info->ad->win);
- if (!strcmp(info->pkg_name, "org.samsung.phone")) {
+ if (!strcmp(info->pkg_name, "org.tizen.phone")) {
/* exception : Because dialer doesn't need bundle
* since being unifyed dialer, voice call and video call
*/
if(ev == NULL) {
_E("Invalid argument: event is NULL\n");
- ecore_timer_add(0.3, _exit_cb, NULL);
+ _exit_cb(ad);
return ECORE_CALLBACK_CANCEL;
}
return lock == (VCONFKEY_IDLE_LOCK ? IDLELOCK_ON : IDLELOCK_OFF);
}
-Eina_Bool _exit_cb(void *data)
+void _exit_cb(void *data)
{
struct appdata *ad = (struct appdata *)data;
+ int lock = IDLELOCK_ON;
+ lock = _get_vconf_idlelock();
- if(ad->exit_timer == NULL)
- return ECORE_CALLBACK_CANCEL;
-
- ad->exit_timer = NULL;
- if(_get_vconf_idlelock() == IDLELOCK_OFF){
+ _D("lock(%d)\n", lock);
+ if(lock == IDLELOCK_OFF){
elm_exit();
}
else{
_D("IDLELOCK is set, taskmnager doesn't exit\n");
}
- return ECORE_CALLBACK_CANCEL;
}
void _key_grab(struct appdata *ad)
Evas_Object *load_edj(Evas_Object *parent, const char *file, const char *group);
int _unset_notification_level(Evas_Object *win);
int _set_notification_level(Evas_Object *win, Utilx_Notification_Level level);
-Eina_Bool _exit_cb(void *data);
+void _exit_cb(void *data);
#endif
/* __TASKMANAGER_H___ */