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:
Alex Chau
2024-07-10 12:45:17 +01:00
parent b89cd5e91a
commit c378e64b75
5 changed files with 34 additions and 24 deletions
@@ -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);