diff options
author | Jacob Keeler <jacob.keeler@livioradio.com> | 2018-05-31 07:56:39 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-31 07:56:39 -0700 |
commit | 86836361773e6d79760263423093197527538d02 (patch) | |
tree | 8efe00fa535bdb031f9b3076af6b50672d02bcfd /src/components/application_manager/src/commands/mobile/set_app_icon_request.cc | |
parent | 1a192a50287da61c6aa6191fc244143f568e048a (diff) | |
parent | 31ed739ba05c6702600f76645132b40d8392587b (diff) | |
download | sdl_core-feature/expandable_design_for_proprietary_data_exchange.tar.gz |
Merge branch 'develop' into feature/expandable_design_for_proprietary_data_exchangefeature/expandable_design_for_proprietary_data_exchange
Diffstat (limited to 'src/components/application_manager/src/commands/mobile/set_app_icon_request.cc')
-rw-r--r-- | src/components/application_manager/src/commands/mobile/set_app_icon_request.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/components/application_manager/src/commands/mobile/set_app_icon_request.cc b/src/components/application_manager/src/commands/mobile/set_app_icon_request.cc index ee544e956a..a100bbb5fb 100644 --- a/src/components/application_manager/src/commands/mobile/set_app_icon_request.cc +++ b/src/components/application_manager/src/commands/mobile/set_app_icon_request.cc @@ -31,9 +31,10 @@ POSSIBILITY OF SUCH DAMAGE. */ -#include <algorithm> #include "application_manager/commands/mobile/set_app_icon_request.h" +#include <algorithm> + #include "application_manager/message_helper.h" #include "application_manager/application_impl.h" #include "interfaces/MOBILE_API.h" @@ -90,10 +91,6 @@ void SetAppIconRequest::Run() { return; } - if (is_icons_saving_enabled_) { - CopyToIconStorage(full_file_path); - } - smart_objects::SmartObject msg_params = smart_objects::SmartObject(smart_objects::SmartType_Map); @@ -262,6 +259,11 @@ void SetAppIconRequest::on_event(const event_engine::Event& event) { const std::string& path = (*message_)[strings::msg_params][strings::sync_file_name] [strings::value].asString(); + + if (is_icons_saving_enabled_) { + CopyToIconStorage(path); + } + app->set_app_icon_path(path); LOG4CXX_INFO(logger_, |