Fixed problem with setting updated values on existing animators
The previous version of PropertyValuesHolder handled construction fine, but setting new values did not result in things getting completely set up correctly for interpolation between those new values. Change-Id: Ibffb16e58b4fe76b8d1cad6f0224ffd4d5404c05
This commit is contained in:
@ -665,6 +665,11 @@ public class PropertyValuesHolder implements Cloneable {
|
||||
public IntPropertyValuesHolder(String propertyName, int... values) {
|
||||
super(propertyName);
|
||||
setIntValues(values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setIntValues(int... values) {
|
||||
super.setIntValues(values);
|
||||
mIntKeyframeSet = (IntKeyframeSet) mKeyframeSet;
|
||||
}
|
||||
|
||||
@ -722,6 +727,11 @@ public class PropertyValuesHolder implements Cloneable {
|
||||
public FloatPropertyValuesHolder(String propertyName, float... values) {
|
||||
super(propertyName);
|
||||
setFloatValues(values);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setFloatValues(float... values) {
|
||||
super.setFloatValues(values);
|
||||
mFloatKeyframeSet = (FloatKeyframeSet) mKeyframeSet;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user