package lc;

import android.os.Handler;
import android.os.Looper;
import androidx.media3.exoplayer.audio.j;
import com.google.android.gms.common.api.internal.i0;
import com.google.android.gms.common.api.internal.v0;
import dd.a0;
import ed.t;
import java.util.Objects;
import k.h;

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

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

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final t f30206b;

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    public final Handler f30207c;

    public a(int i10, a0 a0Var) {
        this.f30205a = i10;
        if (i10 != 1) {
            this.f30207c = new Handler(Looper.getMainLooper());
            this.f30206b = a0Var;
        } else {
            this.f30206b = a0Var;
            this.f30207c = new Handler(Looper.getMainLooper());
        }
    }

    @Override // ed.t
    public final void error(String str, String str2, Object obj) {
        Handler handler = this.f30207c;
        switch (this.f30205a) {
            case 0:
                handler.post(new j(this, str, str2, obj, 2));
                break;
            default:
                handler.post(new h(this, str, str2, obj, 14));
                break;
        }
    }

    @Override // ed.t
    public final void notImplemented() {
        Handler handler = this.f30207c;
        switch (this.f30205a) {
            case 0:
                t tVar = this.f30206b;
                Objects.requireNonNull(tVar);
                handler.post(new y.a(tVar, 21));
                break;
            default:
                handler.post(new i0(this, 5));
                break;
        }
    }

    @Override // ed.t
    public final void success(Object obj) {
        Handler handler = this.f30207c;
        switch (this.f30205a) {
            case 0:
                handler.post(new e.t(this, obj, 28));
                break;
            default:
                handler.post(new v0(this, obj, 12));
                break;
        }
    }
}
