diff options
author | Alexander Kutsan (GitHub) <akutsan@luxoft.com> | 2016-11-15 11:33:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-15 11:33:49 +0200 |
commit | 4e9298547afc002b34aa8345451f1ba8acb22ae8 (patch) | |
tree | bdf5e2ff0d17463dd8cf700f342e4689dd085bb3 /src | |
parent | c4133106efe64b51aaf5c12ddfe6c58178ee426d (diff) | |
parent | c0e8117ca2a4302cd094c9e449c28aa9b5a4defb (diff) | |
download | sdl_core-4e9298547afc002b34aa8345451f1ba8acb22ae8.tar.gz |
Merge pull request #1044 from smartdevicelink/hotfix/on_button_press_conditions
Hotfix/on button press conditions
Diffstat (limited to 'src')
-rwxr-xr-x | src/components/application_manager/src/commands/mobile/on_button_press_notification.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc b/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc index fdf8b559bc..b789b7c7e9 100755 --- a/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc +++ b/src/components/application_manager/src/commands/mobile/on_button_press_notification.cc @@ -116,8 +116,14 @@ void OnButtonPressNotification::Run() { << "in FULL or LIMITED hmi level"); continue; } - // if "app_id" absent send notification only in HMI_FULL mode - if (is_app_id_exists || subscribed_app->IsFullscreen()) { + // if "appID" is present, send it to named app only if its FULL or + // LIMITED + if (app.valid()) { + if (app->app_id() == subscribed_app->app_id()) { + SendButtonPress(subscribed_app); + } + } else if (subscribed_app->IsFullscreen()) { + // if No "appID" - send it FULL apps only. SendButtonPress(subscribed_app); } } |