Merge "Use reference equality for AnimatableScaleMatrix equals()." into rvc-dev am: e948137a18
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11975965 Change-Id: I31f30dc3fd4de4a709830ba230a5c618b018d10c
This commit is contained in:
@@ -134,4 +134,11 @@ public class AnimatableScaleMatrix extends Matrix {
|
|||||||
public float getPivotY() {
|
public float getPivotY() {
|
||||||
return mPivotY;
|
return mPivotY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean equals(Object obj) {
|
||||||
|
// Use object equality to allow this matrix to be used as a map key (which is required for
|
||||||
|
// PhysicsAnimator's animator caching).
|
||||||
|
return obj == this;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user