summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJackLivio <jack@livio.io>2018-06-15 10:05:11 -0400
committerGitHub <noreply@github.com>2018-06-15 10:05:11 -0400
commit90ee6ad4af35d9fdbc00df6c72a8fb8805f3c5da (patch)
tree007b483427be1ed42271f957c4b3cfb22950043d
parent4f2f8812e766153a61e46b982513353694446eec (diff)
parentefaf3a7abaa037e4168e137c15c2a0955bf32028 (diff)
downloadsdl_core-90ee6ad4af35d9fdbc00df6c72a8fb8805f3c5da.tar.gz
Merge pull request #2266 from LitvinenkoIra/fix/external_proprietary_policy_build
Fix build with EXTERNAL PROPRIETARY policy flag
-rw-r--r--src/components/application_manager/src/policies/policy_handler.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/components/application_manager/src/policies/policy_handler.cc b/src/components/application_manager/src/policies/policy_handler.cc
index 123606a11e..4d1805d2a5 100644
--- a/src/components/application_manager/src/policies/policy_handler.cc
+++ b/src/components/application_manager/src/policies/policy_handler.cc
@@ -1250,12 +1250,15 @@ void PolicyHandler::OnAllowSDLFunctionalityNotification(
if (is_allowed) {
// Send HMI status notification to mobile
// Put application in full
- AudioStreamingState::eType state = app->is_audio()
+ AudioStreamingState::eType audio_state = app->IsAudioApplication()
? AudioStreamingState::AUDIBLE
: AudioStreamingState::NOT_AUDIBLE;
+ VideoStreamingState::eType video_state = app->IsVideoApplication()
+ ? VideoStreamingState::STREAMABLE
+ : VideoStreamingState::NOT_STREAMABLE;
application_manager_.state_controller().SetRegularState(
- app, mobile_apis::HMILevel::HMI_FULL, state, true);
+ app, mobile_apis::HMILevel::HMI_FULL, audio_state, video_state, true);
last_activated_app_id_ = 0;
} else {
DeactivateApplication deactivate_notification(