From: Jihoon Kim Date: Tue, 14 Sep 2021 08:06:36 +0000 (+0900) Subject: iu: Send event in case app state is not matched X-Git-Tag: accepted/tizen/unified/20210917.001233~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F17%2F264217%2F1;p=platform%2Fcore%2Fuifw%2Fmmi-manager.git iu: Send event in case app state is not matched Change-Id: I4b68965218d6eae36f588c54f43e626ec3c5a9bb Signed-off-by: Jihoon Kim --- diff --git a/src/mmimgr/iu/mmi_iu.cpp b/src/mmimgr/iu/mmi_iu.cpp index 77ba0d7..4d438ca 100644 --- a/src/mmimgr/iu/mmi_iu.cpp +++ b/src/mmimgr/iu/mmi_iu.cpp @@ -185,10 +185,10 @@ EXPORT_API int mmi_iu_feed_input_event(const char *app_id, int type, void *event if (iu_engine) { if (!iu_engine->set_input_event(type, event)) { - if (iu_output_event_received_callback) + if (iu_output_event_received_callback) { iu_output_event_received_callback(app_id, type, event, iu_output_event_user_data); - - return MMI_IU_ERROR_NONE; + return MMI_IU_ERROR_NONE; + } } } @@ -198,6 +198,13 @@ EXPORT_API int mmi_iu_feed_input_event(const char *app_id, int type, void *event if (iu_engine) { iu_engine->set_app_state(g_app_state); + if (iu_engine->get_output_intent_action().empty()) { + if (iu_output_event_received_callback) { + iu_output_event_received_callback(app_id, type, event, iu_output_event_user_data); + return MMI_IU_ERROR_NONE; + } + } + json_output_intent = iu_engine->get_output_intent_json_data(); _I("output intent : %s\n", json_output_intent.c_str()); }