package defpackage;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.view.View;
import android.view.ViewGroup;
import androidx.media3.ui.DefaultTimeBar;

/* JADX INFO: renamed from: ˎʝʢᵝ, reason: contains not printable characters */
/* JADX INFO: loaded from: classes3.dex */
public final class C1666 extends AnimatorListenerAdapter {

    /* JADX INFO: renamed from: ʽˈˋ, reason: contains not printable characters */
    public final /* synthetic */ C0408 f6599;

    /* JADX INFO: renamed from: ᵲᵶᵳˈ, reason: contains not printable characters */
    public final /* synthetic */ int f6600;

    public /* synthetic */ C1666(C0408 c0408, int i) {
        this.f6600 = i;
        this.f6599 = c0408;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public void onAnimationEnd(Animator animator) {
        int i = this.f6600;
        C0408 c0408 = this.f6599;
        switch (i) {
            case 0:
                View view = c0408.f2289;
                if (view != null) {
                    view.setVisibility(4);
                }
                ViewGroup viewGroup = c0408.f2299;
                if (viewGroup != null) {
                    viewGroup.setVisibility(4);
                }
                ViewGroup viewGroup2 = c0408.f2315;
                if (viewGroup2 != null) {
                    viewGroup2.setVisibility(4);
                }
                ViewGroup viewGroup3 = c0408.f2318;
                if (viewGroup3 != null) {
                    viewGroup3.setVisibility(4);
                }
                break;
            case 1:
            default:
                super.onAnimationEnd(animator);
                break;
            case 2:
                c0408.m1754(0);
                break;
            case 3:
                c0408.m1754(0);
                break;
            case 4:
                ViewGroup viewGroup4 = c0408.f2312;
                if (viewGroup4 != null) {
                    viewGroup4.setVisibility(4);
                }
                break;
            case 5:
                ViewGroup viewGroup5 = c0408.f2317;
                if (viewGroup5 != null) {
                    viewGroup5.setVisibility(4);
                }
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        int i = this.f6600;
        C0408 c0408 = this.f6599;
        switch (i) {
            case 0:
                View view = c0408.f2314;
                if ((view instanceof DefaultTimeBar) && !c0408.f2290) {
                    DefaultTimeBar defaultTimeBar = (DefaultTimeBar) view;
                    ValueAnimator valueAnimator = defaultTimeBar.f683;
                    if (valueAnimator.isStarted()) {
                        valueAnimator.cancel();
                    }
                    valueAnimator.setFloatValues(defaultTimeBar.f678, 0.0f);
                    valueAnimator.setDuration(250L);
                    valueAnimator.start();
                    break;
                }
                break;
            case 1:
                View view2 = c0408.f2289;
                if (view2 != null) {
                    view2.setVisibility(0);
                }
                ViewGroup viewGroup = c0408.f2299;
                if (viewGroup != null) {
                    viewGroup.setVisibility(0);
                }
                ViewGroup viewGroup2 = c0408.f2315;
                if (viewGroup2 != null) {
                    viewGroup2.setVisibility(0);
                }
                ViewGroup viewGroup3 = c0408.f2318;
                if (viewGroup3 != null) {
                    viewGroup3.setVisibility(c0408.f2290 ? 0 : 4);
                }
                View view3 = c0408.f2314;
                if ((view3 instanceof DefaultTimeBar) && !c0408.f2290) {
                    DefaultTimeBar defaultTimeBar2 = (DefaultTimeBar) view3;
                    ValueAnimator valueAnimator2 = defaultTimeBar2.f683;
                    if (valueAnimator2.isStarted()) {
                        valueAnimator2.cancel();
                    }
                    defaultTimeBar2.f674 = false;
                    valueAnimator2.setFloatValues(defaultTimeBar2.f678, 1.0f);
                    valueAnimator2.setDuration(250L);
                    valueAnimator2.start();
                    break;
                }
                break;
            case 2:
                c0408.m1754(4);
                break;
            case 3:
                c0408.m1754(4);
                break;
            case 4:
                ViewGroup viewGroup4 = c0408.f2317;
                if (viewGroup4 != null) {
                    viewGroup4.setVisibility(0);
                    viewGroup4.setTranslationX(viewGroup4.getWidth());
                    viewGroup4.scrollTo(viewGroup4.getWidth(), 0);
                }
                break;
            default:
                ViewGroup viewGroup5 = c0408.f2312;
                if (viewGroup5 != null) {
                    viewGroup5.setVisibility(0);
                }
                break;
        }
    }
}
