[automerge] Fix orientation change between PiPs when collapsed 2p: 84dedaffac

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

Bug: 226571625
Change-Id: I34bb87db9d7188c77c660f71a4e1ca7c51824cef
This commit is contained in:
Jacqueline Bronger
2022-03-25 13:02:08 +00:00
committed by Presubmit Automerger Backend

View File

@@ -95,10 +95,10 @@ public class TvPipBoundsAlgorithm extends PipBoundsAlgorithm {
ProtoLog.d(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
"%s: getEntryDestinationBounds()", TAG);
}
updateExpandedPipSize();
if (mTvPipBoundsState.isTvExpandedPipSupported()
&& mTvPipBoundsState.getDesiredTvExpandedAspectRatio() != 0
&& !mTvPipBoundsState.isTvPipManuallyCollapsed()) {
updateExpandedPipSize();
updateGravityOnExpandToggled(Gravity.NO_GRAVITY, true);
mTvPipBoundsState.setTvPipExpanded(true);
}