package o;

import android.window.OnBackInvokedDispatcher;
import androidx.activity.ComponentActivity;

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

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

    @Override // o.InterfaceC0707aL
    public final void f(InterfaceC0898cL interfaceC0898cL, UK uk) {
        int i = this.l;
        Object obj = this.n;
        Object obj2 = this.m;
        switch (i) {
            case 0:
                ET et = (ET) obj2;
                ComponentActivity componentActivity = (ComponentActivity) obj;
                int i2 = ComponentActivity.l;
                if (uk == UK.ON_CREATE) {
                    OnBackInvokedDispatcher onBackInvokedDispatcher = componentActivity.getOnBackInvokedDispatcher();
                    C2807wR c2807wR = et.b;
                    c2807wR.b(new C2999yT(onBackInvokedDispatcher, 0), 1);
                    c2807wR.b(new C2999yT(onBackInvokedDispatcher, 1000000), 0);
                    break;
                }
                break;
            default:
                IO io = (IO) obj2;
                InterfaceC1189fP interfaceC1189fP = (InterfaceC1189fP) obj;
                if (uk != UK.ON_DESTROY) {
                    io.getClass();
                    break;
                } else {
                    io.b(interfaceC1189fP);
                    break;
                }
        }
    }
}
