diff options
Diffstat (limited to 'src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc')
-rw-r--r-- | src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc index 020605b64f..8745f5a0b5 100644 --- a/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc +++ b/src/components/application_manager/rpc_plugins/rc_rpc_plugin/src/commands/mobile/set_interior_vehicle_data_request.cc @@ -232,9 +232,9 @@ bool CheckControlDataByCapabilities( auto light_data = control_data[request_parameter].asArray()->begin(); for (; light_data != control_data[request_parameter].asArray()->end(); ++light_data) { - if(!CheckLightNameByCapabilities( - module_caps[strings::kSupportedLights], *light_data)){ - return false; + if (!CheckLightNameByCapabilities( + module_caps[strings::kSupportedLights], *light_data)) { + return false; } } return true; @@ -469,8 +469,13 @@ void SetInteriorVehicleDataRequest::CheckAudioSource( application_manager_.get_current_audio_source()) { app_mngr::ApplicationSharedPtr app = application_manager_.application(connection_key()); - application_manager_.ChangeAppsHMILevel( - app->app_id(), mobile_apis::HMILevel::eType::HMI_BACKGROUND); + if (app->mobile_projection_enabled()) { + application_manager_.ChangeAppsHMILevel( + app->app_id(), mobile_apis::HMILevel::eType::HMI_LIMITED); + } else { + application_manager_.ChangeAppsHMILevel( + app->app_id(), mobile_apis::HMILevel::eType::HMI_BACKGROUND); + } } } } |