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:
Chet Haase
2010-11-03 22:38:32 -07:00
parent 0c24a5514c
commit 691ac26817

View File

@ -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;
}