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

Commit f5b0a3e3 authored by Ben Lin's avatar Ben Lin Committed by Android (Google) Code Review
Browse files

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

parents 52fc08f7 d9df20c2
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,