summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Nosach <ANosach@luxoft.com>2015-06-30 17:28:54 +0300
committerArtem Nosach <ANosach@luxoft.com>2015-10-04 18:05:56 +0300
commit39e4f9952983e5bf4a20b6a6b116c7ec22c3007e (patch)
treede55f49778245010bfc325e215fa35de9e09bddc
parentf6469545b60953d1760fc839a575f88285293adf (diff)
downloadsdl_core-39e4f9952983e5bf4a20b6a6b116c7ec22c3007e.tar.gz
Do not change application hmi level from OnAppActivated notification
Raise BasicCommunication_OnAppActivated event from OnAppActivated notification instead of change application hmi level directly Closes-bug: APPLINK-14181
-rw-r--r--src/components/application_manager/src/commands/hmi/on_app_activated_notification.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_app_activated_notification.cc b/src/components/application_manager/src/commands/hmi/on_app_activated_notification.cc
index 0ff76a45f5..acdcc5da9f 100644
--- a/src/components/application_manager/src/commands/hmi/on_app_activated_notification.cc
+++ b/src/components/application_manager/src/commands/hmi/on_app_activated_notification.cc
@@ -49,10 +49,9 @@ OnAppActivatedNotification::~OnAppActivatedNotification() {
void OnAppActivatedNotification::Run() {
LOG4CXX_AUTO_TRACE(logger_);
- uint32_t app_id = ((*message_)[strings::msg_params][strings::app_id]).asUInt();
- ApplicationManagerImpl::instance()->SetState<true>(app_id,
- mobile_apis::HMILevel::HMI_FULL
- );
+ event_engine::Event event(hmi_apis::FunctionID::BasicCommunication_OnAppActivated);
+ event.set_smart_object(*message_);
+ event.raise();
}
} // namespace commands