• Changed Files
  • library/src/main/java/com/google/android/material/motion/properties/ViewProperties.java

Each property read should instantiate a new instance of the wrapper object.
ClosedPublic

Authored by markwei on Apr 17 2017, 6:00 PM.

Details

Summary

Prior, this bug existed:

PointF foo = ViewProperties.CENTER.get(fooView);
print(foo); // [x: 5, y: 10]
PointF bar = ViewProperties.CENTER.get(barView);
print(foo); // [x: 9, y: 34] OOPS!

Diff Detail

Repository
rMDMSTREAMSANDROID reactive-motion-android
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
markwei created this revision.Apr 17 2017, 6:00 PM
Restricted Application added a reviewer: O2: Material Motion. · View Herald TranscriptApr 17 2017, 6:00 PM
Restricted Application added a project: Material Motion. · View Herald Transcript
Restricted Application added a reviewer: O6: Material Android platform reviewers. · View Herald Transcript
Restricted Application added a reviewer: Material Motion. · View Herald Transcript
Restricted Application completed building Restricted Buildable.Apr 17 2017, 6:05 PM
appsforartists accepted this revision.Apr 17 2017, 10:04 PM
This revision is now accepted and ready to land.Apr 17 2017, 10:04 PM
This revision was automatically updated to reflect the committed changes.