Merge "Update Pip launches to not enter pinned task if in background." into tm-qpr-dev am: 446102d48a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23412216 Change-Id: Ic8a289071a1973972deb9a1990b176935b9e9ae3 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1709,7 +1709,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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user