package defpackage;

import android.animation.ValueAnimator;
import android.view.View;
import com.strmr.ps.ui.tvshows.TvShowsFragment;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class ey9 implements ValueAnimator.AnimatorUpdateListener {
    public final /* synthetic */ int a;
    public final /* synthetic */ TvShowsFragment b;

    public /* synthetic */ ey9(TvShowsFragment tvShowsFragment, int i) {
        this.a = i;
        this.b = tvShowsFragment;
    }

    @Override // android.animation.ValueAnimator.AnimatorUpdateListener
    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        switch (this.a) {
            case 0:
                cr4.g(valueAnimator, "animator");
                View view = this.b.ba;
                if (view != null) {
                    Object animatedValue = valueAnimator.getAnimatedValue();
                    cr4.e(animatedValue, "null cannot be cast to non-null type kotlin.Float");
                    view.setTranslationX(((Float) animatedValue).floatValue());
                }
                break;
            case 1:
                cr4.g(valueAnimator, "anim");
                View view2 = this.b.be;
                if (view2 != null) {
                    Object animatedValue2 = valueAnimator.getAnimatedValue();
                    cr4.e(animatedValue2, "null cannot be cast to non-null type kotlin.Float");
                    view2.setTranslationX(((Float) animatedValue2).floatValue());
                }
                break;
            default:
                cr4.g(valueAnimator, "animator");
                View view3 = this.b.ba;
                if (view3 != null) {
                    Object animatedValue3 = valueAnimator.getAnimatedValue();
                    cr4.e(animatedValue3, "null cannot be cast to non-null type kotlin.Float");
                    view3.setTranslationX(((Float) animatedValue3).floatValue());
                }
                break;
        }
    }
}
