iu: Send event in case app state is not matched 17/264217/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Tue, 14 Sep 2021 08:06:36 +0000 (17:06 +0900)
committerSung-Jin Park <sj76.park@samsung.com>
Tue, 14 Sep 2021 12:13:08 +0000 (21:13 +0900)
Change-Id: I4b68965218d6eae36f588c54f43e626ec3c5a9bb
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/mmimgr/iu/mmi_iu.cpp

index 77ba0d7..4d438ca 100644 (file)
@@ -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());
     }