summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/commands
diff options
context:
space:
mode:
authorAlexander Kutsan <akutsan@luxoft.com>2018-04-06 11:36:54 +0300
committerElvis Kuliiev <ekuliiev@luxoft.com>2018-05-25 20:05:12 +0300
commit6829877a77d01eaaa8718e0960feea8ea7966895 (patch)
treebf2e6106cabb5b0cd729146025c96d0e5301f55f /src/components/application_manager/src/commands
parent7fdf6ada7dbe538283538aed93a27c40e8f7d52c (diff)
downloadsdl_core-6829877a77d01eaaa8718e0960feea8ea7966895.tar.gz
Setting app icon to application in case if it exist on file system
Implementation of proposal 0041-appicon-resumption.md Technical task : https://github.com/smartdevicelink/sdl_core/issues/1456 Setup Icon to application if icon exist on file system Implementation of proposal 0041-appicon-resumption.md Technical task : https://github.com/smartdevicelink/sdl_core/issues/1456
Diffstat (limited to 'src/components/application_manager/src/commands')
-rw-r--r--src/components/application_manager/src/commands/mobile/register_app_interface_request.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc b/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc
index 994e8f4995..d32afad00b 100644
--- a/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc
+++ b/src/components/application_manager/src/commands/mobile/register_app_interface_request.cc
@@ -839,7 +839,9 @@ void RegisterAppInterfaceRequest::SendOnAppRegisteredNotificationToHMI(
application[strings::app_name] = application_impl.name();
application[strings::app_id] = application_impl.app_id();
application[hmi_response::policy_app_id] = application_impl.policy_app_id();
- application[strings::icon] = application_impl.app_icon_path();
+ if (file_system::FileExists(application_impl.app_icon_path())) {
+ application[strings::icon] = application_impl.app_icon_path();
+ }
const smart_objects::SmartObject* ngn_media_screen_name =
application_impl.ngn_media_screen_name();