package com.ss.android.ugc.aweme.kids.commonfeed.ui.widget;

import X.C30693bh;
import android.animation.ValueAnimator;
import com.bytedance.covode.number.Covode;

public class LoadMoreFrameLayout$2 implements ValueAnimator.AnimatorUpdateListener {
    public final /* synthetic */ int LIZ;
    public final /* synthetic */ C30693bh LIZIZ;

    static {
        Covode.recordClassIndex(89567);
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        int pow;
        float animatedFraction = valueAnimator.getAnimatedFraction();
        int viewPagerMarginTop = this.LIZIZ.getViewPagerMarginTop();
        C30693bh r4 = this.LIZIZ;
        if (animatedFraction == 1.0f) {
            pow = -viewPagerMarginTop;
        } else {
            pow = (int) (((1.0d - Math.pow((double) animatedFraction, 3.0d)) * ((double) this.LIZ)) - ((double) this.LIZIZ.getViewPagerMarginTop()));
        }
        r4.setViewPagerMarginTopByDelta(pow);
    }

    public LoadMoreFrameLayout$2(C30693bh r1, int i) {
        this.LIZIZ = r1;
        this.LIZ = i;
    }
}
