summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/on_button_press_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/on_button_press_notification.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc b/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc
index 56673f921d..fdf8b559bc 100644
--- a/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc
+++ b/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc
@@ -56,9 +56,8 @@ void OnButtonPressNotification::Run() {
const bool is_app_id_exists =
(*message_)[strings::msg_params].keyExists(strings::app_id);
- const ApplicationSharedPtr app =
- application_manager_.application(
- (*message_)[strings::msg_params][strings::app_id].asUInt());
+ const ApplicationSharedPtr app = application_manager_.application(
+ (*message_)[strings::msg_params][strings::app_id].asUInt());
// CUSTOM_BUTTON notification
if (static_cast<uint32_t>(mobile_apis::ButtonName::CUSTOM_BUTTON) == btn_id) {
@@ -69,7 +68,8 @@ void OnButtonPressNotification::Run() {
}
// custom_button_id is mandatory for CUSTOM_BUTTON notification
- if (false == (*message_)[strings::msg_params].keyExists(
+ if (false ==
+ (*message_)[strings::msg_params].keyExists(
hmi_response::custom_button_id)) {
LOG4CXX_ERROR(logger_,
"CUSTOM_BUTTON OnButtonPress without custom_button_id.");
@@ -99,7 +99,8 @@ void OnButtonPressNotification::Run() {
const std::vector<ApplicationSharedPtr>& subscribed_apps =
application_manager_.applications_by_button(btn_id);
- std::vector<ApplicationSharedPtr>::const_iterator it = subscribed_apps.begin();
+ std::vector<ApplicationSharedPtr>::const_iterator it =
+ subscribed_apps.begin();
for (; subscribed_apps.end() != it; ++it) {
ApplicationSharedPtr subscribed_app = *it;
if (!subscribed_app) {
@@ -117,10 +118,10 @@ void OnButtonPressNotification::Run() {
}
// if "app_id" absent send notification only in HMI_FULL mode
if (is_app_id_exists || subscribed_app->IsFullscreen()) {
- SendButtonPress(subscribed_app);
+ SendButtonPress(subscribed_app);
+ }
}
}
-}
void OnButtonPressNotification::SendButtonPress(ApplicationConstSharedPtr app) {
if (!app) {