package b9;

import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import com.google.android.material.bottomappbar.BottomAppBar;
import com.google.android.material.floatingactionbutton.FloatingActionButton;

/* JADX INFO: loaded from: classes2.dex */
public final class a extends AnimatorListenerAdapter {

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

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

    public /* synthetic */ a(BottomAppBar bottomAppBar, int i10) {
        this.f4774a = i10;
        this.f4775b = bottomAppBar;
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationEnd(Animator animator) {
        int i10 = this.f4774a;
        BottomAppBar bottomAppBar = this.f4775b;
        switch (i10) {
            case 1:
                int i11 = BottomAppBar.V0;
                bottomAppBar.getClass();
                bottomAppBar.modeAnimator = null;
                break;
            case 2:
                int i12 = BottomAppBar.V0;
                bottomAppBar.getClass();
                bottomAppBar.N0 = false;
                bottomAppBar.menuAnimator = null;
                break;
            default:
                super.onAnimationEnd(animator);
                break;
        }
    }

    @Override // android.animation.AnimatorListenerAdapter, android.animation.Animator.AnimatorListener
    public final void onAnimationStart(Animator animator) {
        int i10 = this.f4774a;
        BottomAppBar bottomAppBar = this.f4775b;
        switch (i10) {
            case 0:
                if (!bottomAppBar.N0) {
                    bottomAppBar.K(bottomAppBar.B0, bottomAppBar.O0);
                }
                break;
            case 1:
                int i11 = BottomAppBar.V0;
                bottomAppBar.getClass();
                break;
            case 2:
                int i12 = BottomAppBar.V0;
                bottomAppBar.getClass();
                break;
            default:
                bottomAppBar.T0.onAnimationStart(animator);
                FloatingActionButton floatingActionButtonFindDependentFab = bottomAppBar.findDependentFab();
                if (floatingActionButtonFindDependentFab != null) {
                    floatingActionButtonFindDependentFab.setTranslationX(bottomAppBar.getFabTranslationX());
                }
                break;
        }
    }
}
