package androidx.fragment.app;

import android.content.Context;
import android.content.res.Configuration;
import android.os.Parcelable;
import android.util.AttributeSet;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;

/* JADX INFO: compiled from: FragmentController.java */
/* JADX INFO: loaded from: classes.dex */
public class h {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    private final j<?> f2318a;

    private h(j<?> jVar) {
        this.f2318a = jVar;
    }

    public static h b(j<?> jVar) {
        return new h((j) androidx.core.util.h.g(jVar, "callbacks == null"));
    }

    public void a(Fragment fragment) {
        j<?> jVar = this.f2318a;
        jVar.f2323h.j(jVar, jVar, fragment);
    }

    public void c() {
        this.f2318a.f2323h.y();
    }

    public void d(Configuration configuration) {
        this.f2318a.f2323h.A(configuration);
    }

    public boolean e(MenuItem menuItem) {
        return this.f2318a.f2323h.B(menuItem);
    }

    public void f() {
        this.f2318a.f2323h.C();
    }

    public boolean g(Menu menu, MenuInflater menuInflater) {
        return this.f2318a.f2323h.D(menu, menuInflater);
    }

    public void h() {
        this.f2318a.f2323h.E();
    }

    public void i() {
        this.f2318a.f2323h.G();
    }

    public void j(boolean z2) {
        this.f2318a.f2323h.H(z2);
    }

    public boolean k(MenuItem menuItem) {
        return this.f2318a.f2323h.J(menuItem);
    }

    public void l(Menu menu) {
        this.f2318a.f2323h.K(menu);
    }

    public void m() {
        this.f2318a.f2323h.M();
    }

    public void n(boolean z2) {
        this.f2318a.f2323h.N(z2);
    }

    public boolean o(Menu menu) {
        return this.f2318a.f2323h.O(menu);
    }

    public void p() {
        this.f2318a.f2323h.Q();
    }

    public void q() {
        this.f2318a.f2323h.R();
    }

    public void r() {
        this.f2318a.f2323h.T();
    }

    public boolean s() {
        return this.f2318a.f2323h.a0(true);
    }

    public m t() {
        return this.f2318a.f2323h;
    }

    public void u() {
        this.f2318a.f2323h.P0();
    }

    public View v(View view, String str, Context context, AttributeSet attributeSet) {
        return this.f2318a.f2323h.t0().onCreateView(view, str, context, attributeSet);
    }

    public void w(Parcelable parcelable) {
        j<?> jVar = this.f2318a;
        if (!(jVar instanceof androidx.lifecycle.d0)) {
            throw new IllegalStateException("Your FragmentHostCallback must implement ViewModelStoreOwner to call restoreSaveState(). Call restoreAllState()  if you're still using retainNestedNonConfig().");
        }
        jVar.f2323h.b1(parcelable);
    }

    public Parcelable x() {
        return this.f2318a.f2323h.d1();
    }
}
