From 79300ffae09d3eacce791e3f233c0813c118b474 Mon Sep 17 00:00:00 2001 From: Achim Thesmann Date: Thu, 27 Jun 2024 23:03:07 +0000 Subject: [PATCH] Replace get/setPendingIntentBackgroundActivityLaunchAllowedByPermission Replace usages of the old get/setPendingIntentBackgroundActivityLaunchAllowedByPermission API with the new replacement (passing in mode = ALWAYS). Test: atest DragAndDropPolicyTest StageCoordinatorTests AlarmManagerServiceTest BackgroundActivityStartControllerExemptionTests BackgroundActivityStartControllerTests ActivityOptionsTest ActivityStarterTests BackgroundActivityLaunchTest Flag: EXEMPT refactor Bug: 352182359 Change-Id: I692dbb2122995d5cc3fa87bf5061704987ebddbb --- quickstep/src/com/android/quickstep/TaskAnimationManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/quickstep/src/com/android/quickstep/TaskAnimationManager.java b/quickstep/src/com/android/quickstep/TaskAnimationManager.java index 08bb6cd021..723aa03b9c 100644 --- a/quickstep/src/com/android/quickstep/TaskAnimationManager.java +++ b/quickstep/src/com/android/quickstep/TaskAnimationManager.java @@ -332,7 +332,8 @@ public class TaskAnimationManager implements RecentsAnimationCallbacks.RecentsAn if (ENABLE_SHELL_TRANSITIONS) { final ActivityOptions options = ActivityOptions.makeBasic(); - options.setPendingIntentBackgroundActivityLaunchAllowedByPermission(true); + options.setPendingIntentBackgroundActivityStartMode( + ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOW_ALWAYS); // Use regular (non-transient) launch for all apps page to control IME. if (!containerInterface.allowAllAppsFromOverview()) { options.setTransientLaunch();