• 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.

Authored by markwei on Mon, Apr 17, 5:51 PM.

Description

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

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!

Reviewers: O2 Material Motion, O6 Material Android platform reviewers, Material Motion, appsforartists

Reviewed By: O2 Material Motion, Material Motion, appsforartists

Tags: Material Motion

Differential Revision: http://codereview.cc/D3061

Details

Committed
markweiTue, Apr 18, 2:34 PM
Reviewer
O2: Material Motion
Differential Revision
D3061: Each property read should instantiate a new instance of the wrapper object.
Parents
rMDMSTREAMSANDROID27c2f26e10f2: Update gradle.
Branches
Unknown
Tags
Unknown