Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16ffa8d3 authored by George Mount's avatar George Mount Committed by Android (Google) Code Review
Browse files

Merge "Use Property for ofFloat with Path."

parents 67565a09 f505b1f0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -469,7 +469,10 @@ public final class ObjectAnimator extends ValueAnimator {
     */
    public static <T> ObjectAnimator ofFloat(T target, Property<T, Float> xProperty,
            Property<T, Float> yProperty, Path path) {
        return ofFloat(target, xProperty.getName(), yProperty.getName(), path);
        Keyframe[][] keyframes = PropertyValuesHolder.createKeyframes(path, false);
        PropertyValuesHolder x = PropertyValuesHolder.ofKeyframe(xProperty, keyframes[0]);
        PropertyValuesHolder y = PropertyValuesHolder.ofKeyframe(yProperty, keyframes[1]);
        return ofPropertyValuesHolder(target, x, y);
    }

    /**