summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjacobkeeler <jacob.keeler@livioradio.com>2019-03-22 15:06:25 -0400
committerjacobkeeler <jacob.keeler@livioradio.com>2019-03-22 15:06:25 -0400
commit645b370783a3e93361d1bd88069f3a2cc0481ba7 (patch)
tree3bdd56f6107f9131c1c16f9fd4328de90eb9488a
parentfb88c1700b4c4ede7be876ad236c35cbdc2f2052 (diff)
downloadsdl_core-fix/is_foreground_usages.tar.gz
Change is_foreground() usages to IsFullscreen()fix/is_foreground_usages
-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());