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

Commit cd0bb94e authored by Ben Lin's avatar Ben Lin Committed by Automerger Merge Worker
Browse files

Merge "Don't resize PiP on aspect ratio change if nothing changed." into tm-qpr-dev am: f5b0a3e3

parents 72badcab f5b0a3e3
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -495,15 +495,16 @@ public class PipController implements PipTransitionController.PipTransitionCallb
                                        mPipBoundsState.getBounds(),
                                        mPipBoundsState.getAspectRatio());
                        Objects.requireNonNull(destinationBounds, "Missing destination bounds");
                        if (!destinationBounds.equals(mPipBoundsState.getBounds())) {
                            mPipTaskOrganizer.scheduleAnimateResizePip(destinationBounds,
                                    mEnterAnimationDuration,
                                    null /* updateBoundsCallback */);

                            mTouchHandler.onAspectRatioChanged();
                            updateMovementBounds(null /* toBounds */, false /* fromRotation */,
                                    false /* fromImeAdjustment */, false /* fromShelfAdjustment */,
                                    null /* windowContainerTransaction */);
                        }
                    }

                    @Override
                    public void onActionsChanged(List<RemoteAction> actions,