Fix orientation change between PiPs when collapsed
Bug: 226571625 Fixes: 226571625 Test: manual - open vertical expanded PiP, close PiP, open horizontal expanded PiP Change-Id: I574e53d496b9b03539970f380b4ee1a5ec5d36fc
This commit is contained in:
@@ -95,10 +95,10 @@ public class TvPipBoundsAlgorithm extends PipBoundsAlgorithm {
|
|||||||
ProtoLog.d(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
|
ProtoLog.d(ShellProtoLogGroup.WM_SHELL_PICTURE_IN_PICTURE,
|
||||||
"%s: getEntryDestinationBounds()", TAG);
|
"%s: getEntryDestinationBounds()", TAG);
|
||||||
}
|
}
|
||||||
|
updateExpandedPipSize();
|
||||||
if (mTvPipBoundsState.isTvExpandedPipSupported()
|
if (mTvPipBoundsState.isTvExpandedPipSupported()
|
||||||
&& mTvPipBoundsState.getDesiredTvExpandedAspectRatio() != 0
|
&& mTvPipBoundsState.getDesiredTvExpandedAspectRatio() != 0
|
||||||
&& !mTvPipBoundsState.isTvPipManuallyCollapsed()) {
|
&& !mTvPipBoundsState.isTvPipManuallyCollapsed()) {
|
||||||
updateExpandedPipSize();
|
|
||||||
updateGravityOnExpandToggled(Gravity.NO_GRAVITY, true);
|
updateGravityOnExpandToggled(Gravity.NO_GRAVITY, true);
|
||||||
mTvPipBoundsState.setTvPipExpanded(true);
|
mTvPipBoundsState.setTvPipExpanded(true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user