Set state while getting termination request 98/221998/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 9 Jan 2020 04:13:13 +0000 (13:13 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 9 Jan 2020 04:13:13 +0000 (13:13 +0900)
While getting termination request, appcore-ui sets the state to
STATUS_DYING. After the state is set, the OnAppControl() is not invoked.

Change-Id: I3df490e5f0432c3109542001c50bb50dbd74826c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/ui_base/appcore_ui_base.c

index 22de1ee..8842a1b 100644 (file)
@@ -659,6 +659,7 @@ EXPORT_API int appcore_ui_base_on_receive(aul_type type, bundle *b)
                __raise_win();
                break;
        case AUL_TERMINATE:
+               __context.state = AS_DYING;
                break;
        case AUL_TERMINATE_BG_INST:
        case AUL_TERMINATE_INST: