package J;

import a.AbstractC0386a;
import androidx.leanback.widget.SearchBar;
import c0.AbstractC0570g;
import java.util.ArrayList;
import java.util.List;
import n4.u0;

/* JADX INFO: loaded from: classes.dex */
public final class a implements Runnable {

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

    /* JADX INFO: renamed from: r, reason: collision with root package name */
    public final int f3408r;

    /* JADX INFO: renamed from: s, reason: collision with root package name */
    public final Object f3409s;

    public /* synthetic */ a(int i, int i5, Object obj) {
        this.f3407q = i5;
        this.f3409s = obj;
        this.f3408r = i;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f3407q) {
            case u0.f15495q /* 0 */:
                E.b bVar = (E.b) ((K4.c) this.f3409s).f3604r;
                if (bVar != null) {
                    bVar.h(this.f3408r);
                }
                break;
            case 1:
                ((O2.i) this.f3409s).i(this.f3408r);
                break;
            case 2:
                SearchBar searchBar = (SearchBar) this.f3409s;
                searchBar.f8547J.play(searchBar.f8548K.get(this.f3408r), 1.0f, 1.0f, 1, 0, 1.0f);
                break;
            case 3:
                ArrayList arrayList = (ArrayList) this.f3409s;
                int size = arrayList.size();
                int i = 0;
                if (this.f3408r == 1) {
                    while (i < size) {
                        ((AbstractC0570g) arrayList.get(i)).a();
                        i++;
                    }
                } else {
                    while (i < size) {
                        ((AbstractC0570g) arrayList.get(i)).getClass();
                        i++;
                    }
                }
                break;
            default:
                ((com.google.android.material.datepicker.l) this.f3409s).f10244v0.q0(this.f3408r);
                break;
        }
    }

    public a(List list, int i, Throwable th) {
        this.f3407q = 3;
        AbstractC0386a.j(list, "initCallbacks cannot be null");
        this.f3409s = new ArrayList(list);
        this.f3408r = i;
    }
}
