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

Commit f505b1f0 authored by George Mount's avatar George Mount
Browse files

Use Property for ofFloat with Path.

Bug 15827972

Change-Id: I8917f7ab0df9709c11ae38e89af6b603ec76d430
parent 51fa6bcb
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);
    }

    /**