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

Commit 386dcbdd authored by John Reck's avatar John Reck Committed by Gerrit Code Review
Browse files

Merge "Frameworks/base: Fix missing cast"

parents 9aeb080e 65ac8a2b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ public class FallbackLUTInterpolator implements NativeInterpolatorFactory, TimeI
    private static float[] createLUT(TimeInterpolator interpolator, long duration) {
        long frameIntervalNanos = Choreographer.getInstance().getFrameIntervalNanos();
        int animIntervalMs = (int) (frameIntervalNanos / TimeUtils.NANOS_PER_MS);
        int numAnimFrames = (int) Math.ceil(duration / animIntervalMs);
        int numAnimFrames = (int) Math.ceil(((double) duration) / animIntervalMs);
        float values[] = new float[numAnimFrames];
        float lastFrame = numAnimFrames - 1;
        for (int i = 0; i < numAnimFrames; i++) {