return FALSE;
app_status = _app_status_find(fg->pid);
- if (app_status == NULL)
- return FALSE;
-
- _W("%d is running in the background", fg->pid);
- _app_status_update_status(app_status, STATUS_BG, true, true);
+ if (app_status) {
+ if (_app_status_get_status(app_status) != STATUS_VISIBLE) {
+ _W("%d is running in the background", fg->pid);
+ _app_status_update_status(app_status, STATUS_BG,
+ true, true);
+ }
+ }
_fgmgr_list = g_list_remove(_fgmgr_list, fg);
free(fg);
{
struct fgmgr *fg;
+ _W("Add timer. pid(%d)", pid);
fg = __launch_find_fgmgr(pid);
if (fg) {
- _W("Reset timer. pid(%d)", pid);
g_source_remove(fg->tid);
} else {
fg = calloc(1, sizeof(struct fgmgr));
if (!fg)
return;
+ _W("Remove timer. pid(%d)", pid);
g_source_remove(fg->tid);
_fgmgr_list = g_list_remove(_fgmgr_list, fg);
free(fg);