package d;

import android.content.Intent;
import android.content.IntentSender;
import android.graphics.Typeface;
import android.view.View;
import android.widget.TextView;
import com.google.android.material.bottomsheet.BottomSheetBehavior;
import d3.V0;
import f.C0898f;
import f.InterfaceC0894b;
import java.io.Serializable;
import n4.u0;

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

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

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

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

    /* JADX INFO: renamed from: t, reason: collision with root package name */
    public final /* synthetic */ Object f11267t;

    public /* synthetic */ f(g gVar, int i, Object obj, int i5) {
        this.f11264q = i5;
        this.f11266s = gVar;
        this.f11265r = i;
        this.f11267t = obj;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.f11264q) {
            case u0.f15495q /* 0 */:
                Serializable serializable = (Serializable) ((V0) this.f11267t).f11784r;
                g gVar = (g) this.f11266s;
                String str = (String) gVar.f11268a.get(Integer.valueOf(this.f11265r));
                if (str != null) {
                    C0898f c0898f = (C0898f) gVar.f11272e.get(str);
                    if (c0898f == null) {
                        gVar.f11274g.remove(str);
                        gVar.f11273f.put(str, serializable);
                    } else {
                        InterfaceC0894b interfaceC0894b = c0898f.f12597a;
                        if (gVar.f11271d.remove(str)) {
                            interfaceC0894b.a(serializable);
                        }
                    }
                    break;
                }
                break;
            case 1:
                ((g) this.f11266s).a(this.f11265r, 0, new Intent().setAction("androidx.activity.result.contract.action.INTENT_SENDER_REQUEST").putExtra("androidx.activity.result.contract.extra.SEND_INTENT_EXCEPTION", (IntentSender.SendIntentException) this.f11267t));
                break;
            case 2:
                ((BottomSheetBehavior) this.f11266s).A((View) this.f11267t, this.f11265r);
                break;
            default:
                ((TextView) this.f11267t).setTypeface((Typeface) this.f11266s, this.f11265r);
                break;
        }
    }

    public f(TextView textView, Typeface typeface, int i) {
        this.f11264q = 3;
        this.f11267t = textView;
        this.f11266s = typeface;
        this.f11265r = i;
    }

    public f(BottomSheetBehavior bottomSheetBehavior, View view, int i) {
        this.f11264q = 2;
        this.f11266s = bottomSheetBehavior;
        this.f11267t = view;
        this.f11265r = i;
    }
}
