Merge "Use isSplitActive vs visible when detecting mixed pip/split" into udc-dev am: aeac802e8d

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

Change-Id: If614ac3a12924756e984031ce2fb10e5eca29502
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Evan Rosky
2023-05-04 23:43:02 +00:00
committed by Automerger Merge Worker

View File

@@ -150,9 +150,9 @@ public class DefaultMixedHandler implements Transitions.TransitionHandler,
@Override
public WindowContainerTransaction handleRequest(@NonNull IBinder transition,
@NonNull TransitionRequestInfo request) {
if (mPipHandler.requestHasPipEnter(request) && mSplitHandler.isSplitScreenVisible()) {
if (mPipHandler.requestHasPipEnter(request) && mSplitHandler.isSplitActive()) {
ProtoLog.v(ShellProtoLogGroup.WM_SHELL_TRANSITIONS, " Got a PiP-enter request while "
+ "Split-Screen is foreground, so treat it as Mixed.");
+ "Split-Screen is active, so treat it as Mixed.");
if (request.getRemoteTransition() != null) {
throw new IllegalStateException("Unexpected remote transition in"
+ "pip-enter-from-split request");