Merge "Use reference equality for AnimatableScaleMatrix equals()." into rvc-dev am: e948137a18 am: 5ebc819640

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

Change-Id: I4920df74b6281db5cc953fd7669d66ffce6712ee
This commit is contained in:
TreeHugger Robot
2020-06-24 00:32:18 +00:00
committed by Automerger Merge Worker

View File

@@ -134,4 +134,11 @@ public class AnimatableScaleMatrix extends Matrix {
public float getPivotY() {
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;
}
}