summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc')
-rw-r--r--src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc b/src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc
index 63d513bcaf..2a9969eac4 100644
--- a/src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc
+++ b/src/components/application_manager/src/commands/mobile/on_touch_event_notification.cc
@@ -50,15 +50,16 @@ OnTouchEventNotification::~OnTouchEventNotification() {}
void OnTouchEventNotification::Run() {
LOG4CXX_AUTO_TRACE(logger_);
- const std::vector<ApplicationSharedPtr>& applications =
+ const std::vector<ApplicationSharedPtr>& applications_with_navi =
application_manager_.applications_with_navi();
const std::vector<ApplicationSharedPtr>& projection_applications =
- application_manager_.applications_with_mobile_projection();
+ application_manager_.applications_with_mobile_projection();
- std::vector<ApplicationSharedPtr>::const_iterator nav_it = applications.begin();
-
- for (; applications.end() != nav_it; ++nav_it) {
+ std::vector<ApplicationSharedPtr>::const_iterator nav_it =
+ applications_with_navi.begin();
+
+ for (; applications_with_navi.end() != nav_it; ++nav_it) {
ApplicationSharedPtr app = *nav_it;
if (app->IsFullscreen()) {
(*message_)[strings::params][strings::connection_key] = app->app_id();
@@ -66,13 +67,14 @@ void OnTouchEventNotification::Run() {
}
}
- std::vector<ApplicationSharedPtr>::const_iterator projection_it =
- projection_applications.begin();
+ std::vector<ApplicationSharedPtr>::const_iterator projection_it =
+ projection_applications.begin();
for (; projection_applications.end() != projection_it; ++projection_it) {
ApplicationSharedPtr projection_app = *projection_it;
if (projection_app->IsFullscreen()) {
- (*message_)[strings::params][strings::connection_key] = projection_app->app_id();
+ (*message_)[strings::params][strings::connection_key] =
+ projection_app->app_id();
SendNotification();
}
}