package xyz.stream.view;

import android.animation.ValueAnimator;
import android.graphics.drawable.GradientDrawable;
import android.widget.LinearLayout;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class h implements ValueAnimator.AnimatorUpdateListener {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f36498a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ ThreeDotIndicatorView f36499b;

    public /* synthetic */ h(ThreeDotIndicatorView threeDotIndicatorView, int i10) {
        this.f36498a = i10;
        this.f36499b = threeDotIndicatorView;
    }

    @Override // android.animation.ValueAnimator.AnimatorUpdateListener
    public final void onAnimationUpdate(ValueAnimator valueAnimator) {
        int i10 = this.f36498a;
        ThreeDotIndicatorView threeDotIndicatorView = this.f36499b;
        switch (i10) {
            case 0:
                int i11 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) threeDotIndicatorView.f36375b.getLayoutParams();
                layoutParams.width = iIntValue;
                threeDotIndicatorView.f36375b.setLayoutParams(layoutParams);
                break;
            case 1:
                int i12 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue2 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                LinearLayout.LayoutParams layoutParams2 = (LinearLayout.LayoutParams) threeDotIndicatorView.f36374a.getLayoutParams();
                layoutParams2.width = iIntValue2;
                threeDotIndicatorView.f36374a.setLayoutParams(layoutParams2);
                break;
            case 2:
                int i13 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue3 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                if (threeDotIndicatorView.f36375b.getBackground() instanceof GradientDrawable) {
                    ((GradientDrawable) threeDotIndicatorView.f36375b.getBackground()).setColor(iIntValue3);
                }
                break;
            case 3:
                int i14 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue4 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                if (threeDotIndicatorView.f36374a.getBackground() instanceof GradientDrawable) {
                    ((GradientDrawable) threeDotIndicatorView.f36374a.getBackground()).setColor(iIntValue4);
                }
                break;
            case 4:
                int i15 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue5 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                LinearLayout.LayoutParams layoutParams3 = (LinearLayout.LayoutParams) threeDotIndicatorView.f36375b.getLayoutParams();
                layoutParams3.width = iIntValue5;
                threeDotIndicatorView.f36375b.setLayoutParams(layoutParams3);
                break;
            case 5:
                int i16 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue6 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                LinearLayout.LayoutParams layoutParams4 = (LinearLayout.LayoutParams) threeDotIndicatorView.f36376c.getLayoutParams();
                layoutParams4.width = iIntValue6;
                threeDotIndicatorView.f36376c.setLayoutParams(layoutParams4);
                break;
            case 6:
                int i17 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue7 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                if (threeDotIndicatorView.f36375b.getBackground() instanceof GradientDrawable) {
                    ((GradientDrawable) threeDotIndicatorView.f36375b.getBackground()).setColor(iIntValue7);
                }
                break;
            default:
                int i18 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                int iIntValue8 = ((Integer) valueAnimator.getAnimatedValue()).intValue();
                if (threeDotIndicatorView.f36376c.getBackground() instanceof GradientDrawable) {
                    ((GradientDrawable) threeDotIndicatorView.f36376c.getBackground()).setColor(iIntValue8);
                }
                break;
        }
    }
}
