From: Jaeho Lee Date: Sat, 6 Apr 2013 07:33:38 +0000 (+0900) Subject: fixed a bug X-Git-Tag: 2.1b_release~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=93fb7e647809dea2e57b20e49a474ac78d540e8a;p=platform%2Fcore%2Fappfw%2Fapp-core.git fixed a bug Signed-off-by: Jaeho Lee --- diff --git a/src/appcore-efl.c b/src/appcore-efl.c index 29f2c8a..8329f21 100755 --- a/src/appcore-efl.c +++ b/src/appcore-efl.c @@ -68,6 +68,8 @@ struct sysnoti { static pid_t _pid; static bool resource_reclaiming = TRUE; +static int tmp_val = 0; + struct ui_priv { const char *name; @@ -383,11 +385,12 @@ static void __do_app(enum app_event event, void *data, bundle * b) case AE_RESUME: LOG(LOG_DEBUG, "LAUNCH", "[%s:Application:resume:start]", ui->name); - if (ui->state == AS_PAUSED) { + if (ui->state == AS_PAUSED || tmp_val == 1) { _DBG("[APP %d] RESUME", _pid); if (ui->ops->resume) r = ui->ops->resume(ui->ops->data); ui->state = AS_RUNNING; + tmp_val = 0; } /*TODO : rotation start*/ //r = appcore_resume_rotation_cb(); @@ -965,5 +968,7 @@ EXPORT_API int appcore_set_app_state(int state) { priv.state = state; + tmp_val = 1; + return 0; }