Merge "Use equals to compare Rect instead of reference comparison." into tm-qpr-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b0e2f512db
@@ -191,7 +191,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