Merge "Use equals to compare Rect instead of reference comparison." into tm-qpr-dev am: b0e2f512db am: 4183b3c23b am: 6abba3e588

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22119965

Change-Id: I93c3a3b8823d218f99989c43b728d29644e2cc7a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Mateusz Cicheński
2023-03-17 15:38:30 +00:00
committed by Automerger Merge Worker

View File

@@ -193,7 +193,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
Rect destBounds = mPipKeepClearAlgorithm.adjust(mPipBoundsState,
mPipBoundsAlgorithm);
// only move if the bounds are actually different
if (destBounds != mPipBoundsState.getBounds()) {
if (!destBounds.equals(mPipBoundsState.getBounds())) {
if (mPipTransitionState.hasEnteredPip()) {
// if already in PiP, schedule separate animation
mPipTaskOrganizer.scheduleAnimateResizePip(destBounds,