summaryrefslogtreecommitdiff
path: root/src/components/application_manager/src/application_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/application_manager/src/application_impl.cc')
-rw-r--r--src/components/application_manager/src/application_impl.cc13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/components/application_manager/src/application_impl.cc b/src/components/application_manager/src/application_impl.cc
index a53141b5be..42afd93459 100644
--- a/src/components/application_manager/src/application_impl.cc
+++ b/src/components/application_manager/src/application_impl.cc
@@ -204,6 +204,7 @@ void ApplicationImpl::ChangeSupportingAppHMIType() {
set_voice_communication_supported(false);
set_mobile_projection_enabled(false);
set_webengine_projection_enabled(false);
+ set_remote_control_supported(false);
const smart_objects::SmartObject& array_app_types = *app_types_;
uint32_t lenght_app_types = array_app_types.length();
@@ -224,6 +225,9 @@ void ApplicationImpl::ChangeSupportingAppHMIType() {
case mobile_apis::AppHMIType::WEB_VIEW:
set_webengine_projection_enabled(true);
break;
+ case mobile_apis::AppHMIType::REMOTE_CONTROL:
+ set_remote_control_supported(true);
+ break;
default:
break;
}
@@ -1302,6 +1306,7 @@ AppExtensionPtr ApplicationImpl::QueryInterface(AppExtensionUID uid) {
}
bool ApplicationImpl::AddExtension(AppExtensionPtr extension) {
+ SDL_LOG_AUTO_TRACE();
if (!QueryInterface(extension->uid())) {
SDL_LOG_TRACE("Add extenstion to add id" << app_id() << " with uid "
<< extension->uid());
@@ -1312,12 +1317,18 @@ bool ApplicationImpl::AddExtension(AppExtensionPtr extension) {
}
bool ApplicationImpl::RemoveExtension(AppExtensionUID uid) {
+ SDL_LOG_AUTO_TRACE();
auto it = std::find_if(
extensions_.begin(), extensions_.end(), [uid](AppExtensionPtr extension) {
return extension->uid() == uid;
});
- return it != extensions_.end();
+ if (extensions_.end() != it) {
+ extensions_.erase(it);
+ return true;
+ }
+
+ return false;
}
const std::list<AppExtensionPtr>& ApplicationImpl::Extensions() const {