- fix bug in calling resume_cb at first launch.
- call pause_cb before terminate_cb
Change-Id: Ief34871cb6c465844a49046e24e5f6a472c2f55f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
if (!(ui->state == AS_PAUSED && event == AE_PAUSE))
__appcore_timer_del(ui);
+ if (ui->state == AS_DYING) {
+ _ERR("Skip the event in dying state");
+ return;
+ }
+
if (event == AE_TERMINATE) {
_DBG("[APP %d] TERMINATE", _pid);
- ui->state = AS_DYING;
elm_exit();
return;
}
ui->pending_data = NULL;
} else {
appcore_group_resume();
- if (ui->ops->resume) {
- ui->ops->resume(ui->ops->data);
- }
+ }
+
+ if (ui->ops->resume) {
+ ui->ops->resume(ui->ops->data);
}
ui->state = AS_RUNNING;
}
if (ui->ops && ui->ops->terminate)
ui->ops->terminate(ui->ops->data);
+ ui->state = AS_DYING;
+
if (ui->hshow)
ecore_event_handler_del(ui->hshow);
if (ui->hhide)