package com.tencent.mm.plugin.story.ui.view;

import a.f.b.j;
import a.l;
import a.v;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.view.ViewGroup.LayoutParams;
import com.tencent.matrix.trace.core.AppMethodBeat;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u00020\u00012\u000e\u0010\u0002\u001a\n \u0004*\u0004\u0018\u00010\u00030\u0003H\n¢\u0006\u0002\b\u0005"}, dWq = {"<anonymous>", "", "it", "Landroid/animation/ValueAnimator;", "kotlin.jvm.PlatformType", "onAnimationUpdate"})
final class CommentItemView$d implements AnimatorUpdateListener {
    final /* synthetic */ CommentItemView siD;

    CommentItemView$d(CommentItemView commentItemView) {
        this.siD = commentItemView;
    }

    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        AppMethodBeat.i(110344);
        j.o(valueAnimator, "it");
        Object animatedValue = valueAnimator.getAnimatedValue();
        if (animatedValue == null) {
            v vVar = new v("null cannot be cast to non-null type kotlin.Float");
            AppMethodBeat.o(110344);
            throw vVar;
        }
        float floatValue = ((Float) animatedValue).floatValue();
        LayoutParams layoutParams = this.siD.getLayoutParams();
        layoutParams.width = CommentItemView.c(this.siD) + ((int) (((float) (CommentItemView.d(this.siD) - CommentItemView.c(this.siD))) * floatValue));
        layoutParams.height = ((int) (floatValue * ((float) (CommentItemView.e(this.siD) - CommentItemView.c(this.siD))))) + CommentItemView.c(this.siD);
        this.siD.setLayoutParams(layoutParams);
        AppMethodBeat.o(110344);
    }
}
