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

Commit 9d3eba19 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Hide PiP menu upon display change

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/w8j1PsuqdwzFeAjNMu92t
Flag: EXEMPT bugfix
Bug: 355387025
Test: Rotate the screen with visible PiP menu
Change-Id: Ibc7ab5948a51770edd83e41ddc6e69ea67873b41
parent ba088a63
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -272,6 +272,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
        final boolean changed = onDisplayRotationChanged(mContext, outBounds, currentBounds,
                mTmpInsetBounds, displayId, fromRotation, toRotation, t);
        if (changed) {
            mMenuController.hideMenu();
            // If the pip was in the offset zone earlier, adjust the new bounds to the bottom of the
            // movement bounds
            mTouchHandler.adjustBoundsForRotation(outBounds, mPipBoundsState.getBounds(),