package d;

import P.C0168l;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import androidx.fragment.app.N;
import androidx.lifecycle.V;
import d4.C0550i;
import m0.C0896a;
import q4.InterfaceC0958a;
import r4.AbstractC0983h;

/* JADX INFO: renamed from: d.c, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0509c implements InterfaceC0958a {

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

    /* JADX INFO: renamed from: l, reason: collision with root package name */
    public final /* synthetic */ N f5970l;

    public /* synthetic */ C0509c(N n5, int i) {
        this.f5969k = i;
        this.f5970l = n5;
    }

    @Override // q4.InterfaceC0958a
    public final Object invoke() {
        switch (this.f5969k) {
            case 0:
                this.f5970l.reportFullyDrawn();
                return C0550i.f6143a;
            case 1:
                return AbstractActivityC0518l.b(this.f5970l);
            case 2:
                C0896a c0896a = new C0896a();
                this.f5970l.getNavigationEventDispatcher().a(c0896a);
                return c0896a;
            case 3:
                N n5 = this.f5970l;
                return new V(n5.getApplication(), n5, n5.getIntent() != null ? n5.getIntent().getExtras() : null);
            default:
                N n6 = this.f5970l;
                C0527u c0527u = new C0527u(new RunnableC0508b(n6, 0));
                if (Build.VERSION.SDK_INT >= 33) {
                    if (AbstractC0983h.a(Looper.myLooper(), Looper.getMainLooper())) {
                        n6.getLifecycle().a(new C0168l(1, c0527u, n6));
                    } else {
                        new Handler(Looper.getMainLooper()).post(new F.j(9, n6, c0527u));
                    }
                }
                return c0527u;
        }
    }
}
