Merge "Update Pip launches to not enter pinned task if in background." into udc-dev am: 6c4cd25a6d am: 1b043cfff6

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

Change-Id: I84bd9769773c42b57f47081be9e7d3753c4103c5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Linus Tufvesson
2023-05-29 16:56:09 +00:00
committed by Automerger Merge Worker

View File

@@ -1820,7 +1820,8 @@ class ActivityStarter {
// If Activity's launching into PiP, move the mStartActivity immediately to pinned mode.
// Note that mStartActivity and source should be in the same Task at this point.
if (mOptions != null && mOptions.isLaunchIntoPip()
&& sourceRecord != null && sourceRecord.getTask() == mStartActivity.getTask()) {
&& sourceRecord != null && sourceRecord.getTask() == mStartActivity.getTask()
&& balCode != BAL_BLOCK) {
mRootWindowContainer.moveActivityToPinnedRootTask(mStartActivity,
sourceRecord, "launch-into-pip");
}