Merge "Allow BAL for HeavyWeightSwitcher." into udc-dev am: 8d5e2b90b7

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23060590

Change-Id: Ief262ba19d5af5f1a1df7bdba8923a810e29ca76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Achim Thesmann
2023-05-11 04:11:16 +00:00
committed by Automerger Merge Worker

View File

@@ -18,6 +18,7 @@ package com.android.internal.app;
import android.app.Activity;
import android.app.ActivityManager;
import android.app.ActivityOptions;
import android.app.ActivityTaskManager;
import android.app.ActivityThread;
import android.app.IApplicationThread;
@@ -150,7 +151,12 @@ public class HeavyWeightSwitcherActivity extends Activity {
Intent.FLAG_ACTIVITY_FORWARD_RESULT,
Intent.FLAG_ACTIVITY_FORWARD_RESULT, 0);
} else {
startIntentSenderForResult(mStartIntent, -1, null, 0, 0, 0);
ActivityOptions activityOptions =
ActivityOptions.makeBasic()
.setPendingIntentBackgroundActivityStartMode(
ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_ALLOWED);
startIntentSenderForResult(mStartIntent, -1, null, 0, 0, 0,
activityOptions.toBundle());
}
} catch (IntentSender.SendIntentException ex) {
Log.w("HeavyWeightSwitcherActivity", "Failure starting", ex);