Merge "Use equals to compare Rect instead of reference comparison." into tm-qpr-dev am: b0e2f512db am: 4183b3c23b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/22119965 Change-Id: I86f557548aded9effa8d114a6f5361674a15a5e1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -193,7 +193,7 @@ public class PipController implements PipTransitionController.PipTransitionCallb
|
|||||||
Rect destBounds = mPipKeepClearAlgorithm.adjust(mPipBoundsState,
|
Rect destBounds = mPipKeepClearAlgorithm.adjust(mPipBoundsState,
|
||||||
mPipBoundsAlgorithm);
|
mPipBoundsAlgorithm);
|
||||||
// only move if the bounds are actually different
|
// only move if the bounds are actually different
|
||||||
if (destBounds != mPipBoundsState.getBounds()) {
|
if (!destBounds.equals(mPipBoundsState.getBounds())) {
|
||||||
if (mPipTransitionState.hasEnteredPip()) {
|
if (mPipTransitionState.hasEnteredPip()) {
|
||||||
// if already in PiP, schedule separate animation
|
// if already in PiP, schedule separate animation
|
||||||
mPipTaskOrganizer.scheduleAnimateResizePip(destBounds,
|
mPipTaskOrganizer.scheduleAnimateResizePip(destBounds,
|
||||||
|
|||||||
Reference in New Issue
Block a user