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

Commit 12ad1337 authored by Hongwei Wang's avatar Hongwei Wang Committed by Android (Google) Code Review
Browse files

Merge "Preserve the bounds upon double-tap PiP" into main

parents 7825d60b 7b534cc8
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -909,10 +909,6 @@ public class PipTouchHandler {
                    && mMenuState != MENU_STATE_FULL) {
                // If using pinch to zoom, double-tap functions as resizing between max/min size
                if (mPipResizeGestureHandler.isUsingPinchToZoom()) {
                    final boolean toExpand = mPipBoundsState.getBounds().width()
                            < mPipBoundsState.getMaxSize().x
                            && mPipBoundsState.getBounds().height()
                            < mPipBoundsState.getMaxSize().y;
                    if (mMenuController.isMenuVisible()) {
                        mMenuController.hideMenu(ANIM_TYPE_NONE, false /* resize */);
                    }
@@ -931,6 +927,7 @@ public class PipTouchHandler {
                    } else {
                        animateToUnexpandedState(getUserResizeBounds());
                    }
                    mPipBoundsState.setHasUserResizedPip(true);
                } else {
                    // Expand to fullscreen if this is a double tap
                    // the PiP should be frozen until the transition ends
+1 −0
Original line number Diff line number Diff line
@@ -987,6 +987,7 @@ public class PipTouchHandler implements PipTransitionState.PipTransitionStateCha
                    } else {
                        animateToUnexpandedState(getUserResizeBounds());
                    }
                    mPipBoundsState.setHasUserResizedPip(true);
                } else {
                    // Expand to fullscreen if this is a double tap
                    // the PiP should be frozen until the transition ends