diff options
author | Ira Lytvynenko <ILytvynenko@luxoft.com> | 2018-02-28 13:22:50 +0200 |
---|---|---|
committer | Alexander <akutsan@luxoft.com> | 2018-08-16 16:16:59 +0300 |
commit | 64de9367cf37c34541aa8e5fe15309d2c48fb578 (patch) | |
tree | 92e7bfaff3280e24383dc5397a3beb528649daaa /src/components/application_manager/src/application_impl.cc | |
parent | 3a775dd456dc75ffa4488d974eb5eb7db0f5d55b (diff) | |
download | sdl_core-64de9367cf37c34541aa8e5fe15309d2c48fb578.tar.gz |
Save current audio source
Save current audio source and check it in SetInteriorVehicleDataRequest
Save current audio source in app manager
Fix SDL behavior when app wants to change audio source
Diffstat (limited to 'src/components/application_manager/src/application_impl.cc')
-rw-r--r-- | src/components/application_manager/src/application_impl.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/application_manager/src/application_impl.cc b/src/components/application_manager/src/application_impl.cc index a26418d917..222ffa6f1c 100644 --- a/src/components/application_manager/src/application_impl.cc +++ b/src/components/application_manager/src/application_impl.cc @@ -314,6 +314,13 @@ const HmiStatePtr ApplicationImpl::RegularHmiState() const { return state_.GetState(HmiState::STATE_ID_REGULAR); } +bool ApplicationImpl::IsAllowedToChangeAudioSource() const { + if (!is_remote_control_supported() || !is_media_application()) { + return false; + } + return true; +} + const HmiStatePtr ApplicationImpl::PostponedHmiState() const { return state_.GetState(HmiState::STATE_ID_POSTPONED); } |