summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Keeler <jacob.keeler@livioradio.com>2019-03-26 16:40:32 -0400
committerGitHub <noreply@github.com>2019-03-26 16:40:32 -0400
commitc647e9437881e2cba6f84e7add2510e7ec2a6256 (patch)
treef85c4e09786a576d4323d6a1238b594b7ea56b87
parent7bdc752cb8a1e6132d3319216170fed507dbabbc (diff)
parent645b370783a3e93361d1bd88069f3a2cc0481ba7 (diff)
downloadsdl_core-c647e9437881e2cba6f84e7add2510e7ec2a6256.tar.gz
Merge pull request #2856 from smartdevicelink/fix/is_foreground_usages
Change is_foreground() usages to IsFullscreen()
-rw-r--r--src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/perform_app_service_interaction_request.cc2
-rw-r--r--src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/publish_app_service_request.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/perform_app_service_interaction_request.cc b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/perform_app_service_interaction_request.cc
index 4046ac7379..63b6e47d8e 100644
--- a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/perform_app_service_interaction_request.cc
+++ b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/perform_app_service_interaction_request.cc
@@ -95,7 +95,7 @@ void PerformAppServiceInteractionRequest::Run() {
bool activate_service = request_service_active &&
!service->record[strings::service_active].asBool();
if (activate_service) {
- if (app->is_foreground()) {
+ if (app->IsFullscreen()) {
// App is in foreground, we can just activate the service
application_manager_.GetAppServiceManager().ActivateAppService(
service_id);
diff --git a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/publish_app_service_request.cc b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/publish_app_service_request.cc
index 171c10913e..bb0855d42f 100644
--- a/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/publish_app_service_request.cc
+++ b/src/components/application_manager/rpc_plugins/app_service_rpc_plugin/src/commands/mobile/publish_app_service_request.cc
@@ -111,7 +111,7 @@ void PublishAppServiceRequest::Run() {
smart_objects::SmartObject service_record =
application_manager_.GetAppServiceManager().PublishAppService(
manifest, true, connection_key());
- if (app->is_foreground()) {
+ if (app->IsFullscreen()) {
// Service should be activated if app is in the foreground
application_manager_.GetAppServiceManager().ActivateAppService(
service_record[strings::service_id].asString());