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 {
    private final j<?> a;

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

    public static h b(j<?> jVar) {
        c.f.k.f.c(jVar, "callbacks == null");
        return new h(jVar);
    }

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

    public void c() {
        this.a.f770h.y();
    }

    public void d(Configuration configuration) {
        this.a.f770h.A(configuration);
    }

    public boolean e(MenuItem menuItem) {
        return this.a.f770h.B(menuItem);
    }

    public void f() {
        this.a.f770h.C();
    }

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

    public void h() {
        this.a.f770h.E();
    }

    public void i() {
        this.a.f770h.G();
    }

    public void j(boolean z) {
        this.a.f770h.H(z);
    }

    public boolean k(MenuItem menuItem) {
        return this.a.f770h.J(menuItem);
    }

    public void l(Menu menu) {
        this.a.f770h.K(menu);
    }

    public void m() {
        this.a.f770h.M();
    }

    public void n(boolean z) {
        this.a.f770h.N(z);
    }

    public boolean o(Menu menu) {
        return this.a.f770h.O(menu);
    }

    public void p() {
        this.a.f770h.Q();
    }

    public void q() {
        this.a.f770h.R();
    }

    public void r() {
        this.a.f770h.T();
    }

    public boolean s() {
        return this.a.f770h.a0(true);
    }

    public m t() {
        return this.a.f770h;
    }

    public void u() {
        this.a.f770h.P0();
    }

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

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

    public Parcelable x() {
        return this.a.f770h.c1();
    }
}
