focusTransitionScaleAndDimOut should always go from 1f to 0f
- Also updated AnimatedFloat to accept a Consumer<Float>, so a lambda can be used as updateCallback with refernce to udpated value - Also updated PendingAnimation to accept Animator with TimedInterpolator without specifying SpringProperty Fix: 352195519 Test: manual Flag: EXEMPT bugfix Change-Id: Ifb78c1bcd3ca215a5d214f986a107d0988bff13b
This commit is contained in:
@@ -59,6 +59,13 @@ public class PendingAnimation extends AnimatedPropertySetter {
|
||||
add(anim, springProperty);
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method to sent an interpolator on an animation and add it to the list
|
||||
*/
|
||||
public void add(Animator anim, TimeInterpolator interpolator) {
|
||||
add(anim, interpolator, SpringProperty.DEFAULT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void add(Animator anim) {
|
||||
add(anim, SpringProperty.DEFAULT);
|
||||
|
||||
Reference in New Issue
Block a user