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 committed 2024-07-10 13:40:22 +01:00
1 parent b89cd5e91a
commit c378e64b75
5 files changed
+34 -24

No files matched your search

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