Merge "Also check PiP activity visibility to determine if enter-pip" into udc-dev am: cc054b9433
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23754867 Change-Id: I60da128b21fa4b96c35bb9ca543a6b4392401fa5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -979,7 +979,7 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
||||
}
|
||||
|
||||
if (ar.pictureInPictureArgs != null && ar.pictureInPictureArgs.isAutoEnterEnabled()) {
|
||||
if (didCommitTransientLaunch()) {
|
||||
if (!ar.getTask().isVisibleRequested() || didCommitTransientLaunch()) {
|
||||
// force enable pip-on-task-switch now that we've committed to actually launching
|
||||
// to the transient activity.
|
||||
ar.supportsEnterPipOnTaskSwitch = true;
|
||||
@@ -1008,7 +1008,8 @@ class Transition implements BLASTSyncEngine.TransactionReadyListener {
|
||||
}
|
||||
|
||||
// Legacy pip-entry (not via isAutoEnterEnabled).
|
||||
if (didCommitTransientLaunch() && ar.supportsPictureInPicture()) {
|
||||
if ((!ar.getTask().isVisibleRequested() || didCommitTransientLaunch())
|
||||
&& ar.supportsPictureInPicture()) {
|
||||
// force enable pip-on-task-switch now that we've committed to actually launching to the
|
||||
// transient activity, and then recalculate whether we can attempt pip.
|
||||
ar.supportsEnterPipOnTaskSwitch = true;
|
||||
|
||||
Reference in New Issue
Block a user