package xyz.stream.view;

import android.widget.LinearLayout;

/* JADX INFO: loaded from: classes3.dex */
public final /* synthetic */ class i implements Runnable {

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

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

    public /* synthetic */ i(ThreeDotIndicatorView threeDotIndicatorView, int i10) {
        this.f36500a = i10;
        this.f36501b = threeDotIndicatorView;
    }

    @Override // java.lang.Runnable
    public final void run() {
        int i10 = this.f36500a;
        ThreeDotIndicatorView threeDotIndicatorView = this.f36501b;
        switch (i10) {
            case 0:
                threeDotIndicatorView.f36375b.setPivotX(0.0f);
                threeDotIndicatorView.f36375b.setPivotY(r0.getHeight() / 2.0f);
                break;
            case 1:
                threeDotIndicatorView.f36376c.setPivotX(r0.getWidth());
                threeDotIndicatorView.f36376c.setPivotY(r0.getHeight() / 2.0f);
                break;
            case 2:
                threeDotIndicatorView.f36377d.setPivotX(r0.getWidth());
                threeDotIndicatorView.f36377d.setPivotY(r0.getHeight() / 2.0f);
                break;
            case 3:
                int i11 = ThreeDotIndicatorView.f36373j;
                threeDotIndicatorView.getClass();
                try {
                    threeDotIndicatorView.removeView(threeDotIndicatorView.f36374a);
                    break;
                } catch (Throwable unused) {
                }
                threeDotIndicatorView.f36374a = threeDotIndicatorView.f36375b;
                threeDotIndicatorView.f36375b = threeDotIndicatorView.f36376c;
                threeDotIndicatorView.f36376c = threeDotIndicatorView.f36377d;
                int i12 = threeDotIndicatorView.f36378e;
                int i13 = threeDotIndicatorView.f36380g;
                LinearLayout.LayoutParams layoutParams = new LinearLayout.LayoutParams(i12, i13);
                int i14 = threeDotIndicatorView.f36381h;
                layoutParams.setMargins(i14, 0, i14, 0);
                threeDotIndicatorView.f36374a.setLayoutParams(layoutParams);
                threeDotIndicatorView.f36374a.setBackground(threeDotIndicatorView.d(false));
                threeDotIndicatorView.f36374a.setAlpha(1.0f);
                threeDotIndicatorView.f36374a.setTranslationX(0.0f);
                LinearLayout.LayoutParams layoutParams2 = new LinearLayout.LayoutParams(threeDotIndicatorView.f36379f, i13);
                layoutParams2.setMargins(i14, 0, i14, 0);
                threeDotIndicatorView.f36375b.setLayoutParams(layoutParams2);
                threeDotIndicatorView.f36375b.setBackground(threeDotIndicatorView.d(true));
                threeDotIndicatorView.f36375b.setAlpha(1.0f);
                threeDotIndicatorView.f36375b.setTranslationX(0.0f);
                LinearLayout.LayoutParams layoutParams3 = new LinearLayout.LayoutParams(i12, i13);
                layoutParams3.setMargins(i14, 0, i14, 0);
                threeDotIndicatorView.f36376c.setLayoutParams(layoutParams3);
                threeDotIndicatorView.f36376c.setBackground(threeDotIndicatorView.d(false));
                threeDotIndicatorView.f36376c.setAlpha(1.0f);
                threeDotIndicatorView.f36376c.animate().translationX(0.0f).setDuration(0L).start();
                threeDotIndicatorView.f36376c.post(new i(threeDotIndicatorView, 4));
                threeDotIndicatorView.f36377d = threeDotIndicatorView.c(false);
                LinearLayout.LayoutParams layoutParams4 = new LinearLayout.LayoutParams(i12, i13);
                layoutParams4.setMargins(i14, 0, i14, 0);
                threeDotIndicatorView.f36377d.setLayoutParams(layoutParams4);
                threeDotIndicatorView.addView(threeDotIndicatorView.f36377d);
                threeDotIndicatorView.f36377d.post(new i(threeDotIndicatorView, 5));
                threeDotIndicatorView.f36375b.post(new i(threeDotIndicatorView, 6));
                threeDotIndicatorView.f36374a.invalidate();
                threeDotIndicatorView.f36375b.invalidate();
                break;
            case 4:
                threeDotIndicatorView.f36376c.setPivotX(r0.getWidth());
                threeDotIndicatorView.f36376c.setPivotY(r0.getHeight() / 2.0f);
                break;
            case 5:
                threeDotIndicatorView.f36377d.setPivotX(r0.getWidth());
                threeDotIndicatorView.f36377d.setPivotY(r0.getHeight() / 2.0f);
                break;
            default:
                threeDotIndicatorView.f36375b.setPivotX(0.0f);
                threeDotIndicatorView.f36375b.setPivotY(r0.getHeight() / 2.0f);
                break;
        }
    }
}
