diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2019-07-10 10:21:36 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-10 10:21:36 -0400 |
commit | 2f83164e3a31eea3a86be3e74614f9e77615befc (patch) | |
tree | 50c61c3d9cd7d07cabc6964966079dd323834dc2 /src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile | |
parent | 18ca3b719bd2442a4370dfba34e1c4ab885ba6e7 (diff) | |
parent | a9ffc899143be3e729a78d2104725fd43d1c10ce (diff) | |
download | sdl_core-2f83164e3a31eea3a86be3e74614f9e77615befc.tar.gz |
Merge pull request #2943 from smartdevicelink/feature/expand_on_put_file
Expand OnPutFile beyond system files
Diffstat (limited to 'src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile')
-rw-r--r-- | src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/put_file_request.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/put_file_request.cc b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/put_file_request.cc index 41558c08f0..f68596ce27 100644 --- a/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/put_file_request.cc +++ b/src/components/application_manager/rpc_plugins/sdl_rpc_plugin/src/commands/mobile/put_file_request.cc @@ -284,9 +284,7 @@ void PutFileRequest::Run() { } SendResponse(true, save_result, "File was downloaded", &response_params); - if (is_system_file) { - SendOnPutFileNotification(); - } + SendOnPutFileNotification(is_system_file); break; } default: @@ -297,7 +295,7 @@ void PutFileRequest::Run() { } } -void PutFileRequest::SendOnPutFileNotification() { +void PutFileRequest::SendOnPutFileNotification(bool is_system_file) { LOG4CXX_INFO(logger_, "SendOnPutFileNotification"); smart_objects::SmartObjectSPtr notification = std::make_shared<smart_objects::SmartObject>( @@ -316,6 +314,7 @@ void PutFileRequest::SendOnPutFileNotification() { message[strings::msg_params][strings::length] = length_; message[strings::msg_params][strings::persistent_file] = is_persistent_file_; message[strings::msg_params][strings::file_type] = file_type_; + message[strings::msg_params][strings::is_system_file] = is_system_file; rpc_service_.ManageHMICommand(notification); } |