diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2021-05-14 14:22:19 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 14:22:19 -0400 |
commit | 84b0746527f58ab412cf6ba9205e1467dfcf0c6f (patch) | |
tree | 2cfc19b38de84e1122887521394588dfaf679c9f /src | |
parent | bb291d109aca3cc441c9e21c85d111a82bb5ad1b (diff) | |
download | sdl_core-84b0746527f58ab412cf6ba9205e1467dfcf0c6f.tar.gz |
Remove logic sending invalid slider position (#3697)
sliderPosition was set to 0 (an invalid value) in the mobile response if an ABORTED result was received from the HMI without this parameter.
Diffstat (limited to 'src')
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/slider_request.cc | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/slider_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/slider_request.cc index e46d3fd7f0..22935e2136 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/slider_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/slider_request.cc @@ -153,21 +153,6 @@ void SliderRequest::on_event(const event_engine::Event& event) { SmartObject response_msg_params = message[strings::msg_params]; - const bool is_timeout_aborted = Compare<Common_Result::eType, EQ, ONE>( - response_code, Common_Result::TIMED_OUT, Common_Result::ABORTED); - - if (is_timeout_aborted) { - if (message[strings::params][strings::data].keyExists( - strings::slider_position)) { - // Copy slider_position info to msg_params section - response_msg_params[strings::slider_position] = - message[strings::params][strings::data][strings::slider_position]; - } else { - SDL_LOG_ERROR(strings::slider_position << " field is absent" - " in response."); - response_msg_params[strings::slider_position] = 0; - } - } std::string response_info; GetInfo(message, response_info); const bool is_response_success = PrepareResultForMobileResponse( |