Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b258b218 authored by Jacqueline Bronger's avatar Jacqueline Bronger
Browse files

Fix gravity issue when enabling expanded PiP (TV)

Bug: 226570096
Fixes: 226570096
Test: manual - open expanded PiP, close PiP, open regular PiP, add
expanded aspect ratio to the PiP

Change-Id: I951db94a23ee1c885dfa508ea02f1329f604742e
parent 84dedaff
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -96,12 +96,13 @@ public class TvPipBoundsAlgorithm extends PipBoundsAlgorithm {
                    "%s: getEntryDestinationBounds()", TAG);
        }
        updateExpandedPipSize();
        if (mTvPipBoundsState.isTvExpandedPipSupported()
        final boolean isPipExpanded = mTvPipBoundsState.isTvExpandedPipSupported()
                && mTvPipBoundsState.getDesiredTvExpandedAspectRatio() != 0
                && !mTvPipBoundsState.isTvPipManuallyCollapsed()) {
                && !mTvPipBoundsState.isTvPipManuallyCollapsed();
        if (isPipExpanded) {
            updateGravityOnExpandToggled(Gravity.NO_GRAVITY, true);
            mTvPipBoundsState.setTvPipExpanded(true);
        }
        mTvPipBoundsState.setTvPipExpanded(isPipExpanded);
        return getTvPipBounds().getBounds();
    }