LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:reset:done]", ui->name);
if (first_launch) {
+#ifdef _APPFW_FEATURE_BACKGROUND_MANAGEMENT
+ if (ui->app_core->allowed_bg)
+ __appcore_timer_add(ui);
+#endif
first_launch = FALSE;
} else {
_INFO("[APP %d] App already running, raise the window", _pid);
_DBG("[__SUSPEND__] resume case");
ui->exit_from_suspend(ui);
}
+ if (ui->app_core->allowed_bg)
+ __appcore_timer_del(ui);
#endif
if (ui->state == AS_PAUSED || ui->state == AS_CREATED) {
__appcore_timer_del(ui);
- /* Check the launchpad-loader case */
- while (elm_shutdown() > 0);
+ elm_shutdown();
}
static int __set_data(struct ui_priv *ui, const char *name,