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;
+ }
}
}
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());
}