package o;

import android.content.Intent;
import android.content.IntentSender;
import java.io.Serializable;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* renamed from: o.Fj, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final /* synthetic */ class RunnableC0139Fj implements Runnable {
    public final /* synthetic */ int l;
    public final /* synthetic */ Object m;
    public final /* synthetic */ int n;

    /* renamed from: o, reason: collision with root package name */
    public final /* synthetic */ Object f124o;

    public /* synthetic */ RunnableC0139Fj(int i, int i2, Object obj, Object obj2) {
        this.l = i2;
        this.m = obj;
        this.n = i;
        this.f124o = obj2;
    }

    @Override // java.lang.Runnable
    public final void run() {
        switch (this.l) {
            case 0:
                C0165Gj c0165Gj = (C0165Gj) this.m;
                Serializable serializable = (Serializable) ((OD) this.f124o).m;
                String str = (String) c0165Gj.a.get(Integer.valueOf(this.n));
                if (str != null) {
                    B1 b1 = (B1) c0165Gj.e.get(str);
                    if ((b1 != null ? b1.a : null) != null) {
                        InterfaceC2677v1 interfaceC2677v1 = b1.a;
                        if (c0165Gj.d.remove(str)) {
                            interfaceC2677v1.c(serializable);
                            break;
                        }
                    } else {
                        c0165Gj.g.remove(str);
                        c0165Gj.f.put(str, serializable);
                        break;
                    }
                }
                break;
            case 1:
                ((C0165Gj) this.m).a(this.n, 0, new Intent().setAction("androidx.activity.result.contract.action.INTENT_SENDER_REQUEST").putExtra("androidx.activity.result.contract.extra.SEND_INTENT_EXCEPTION", (IntentSender.SendIntentException) this.f124o));
                break;
            default:
                ((InterfaceC0912cZ) ((C0173Gr) this.m).c).f(this.n, this.f124o);
                break;
        }
    }
}
