fixed a bug
authorJaeho Lee <jaeho81.lee@samsung.com>
Sat, 6 Apr 2013 07:33:38 +0000 (16:33 +0900)
committerJaeho Lee <jaeho81.lee@samsung.com>
Sat, 6 Apr 2013 07:33:38 +0000 (16:33 +0900)
Signed-off-by: Jaeho Lee <jaeho81.lee@samsung.com>
src/appcore-efl.c

index 29f2c8a..8329f21 100755 (executable)
@@ -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;
 }