diff options
Diffstat (limited to 'src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc')
-rw-r--r-- | src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc b/src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc index 9bd9099c7..5f47c2908 100644 --- a/src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc +++ b/src/components/application_manager/src/commands/hmi/on_phone_call_notification.cc @@ -1,4 +1,4 @@ -/** +/* * Copyright (c) 2013, Ford Motor Company * All rights reserved. * @@ -50,16 +50,10 @@ OnPhoneCallNotification::~OnPhoneCallNotification() { } void OnPhoneCallNotification::Run() { - LOG4CXX_INFO(logger_, "OnPhoneCallNotification::Run"); - - bool is_active = - (*message_)[strings::msg_params][hmi_notification::is_active].asBool(); - - if (is_active) { - ApplicationManagerImpl::instance()->CreatePhoneCallAppList(); - } else { - ApplicationManagerImpl::instance()->ResetPhoneCallAppList(); - } + LOG4CXX_AUTO_TRACE(logger_); + event_engine::Event event(hmi_apis::FunctionID::BasicCommunication_OnPhoneCall); + event.set_smart_object(*message_); + event.raise(); } } // namespace hmi |