package X6FRs_4.KNBe_11;

import X6FRs_4.KNBe_11.IFxWkV_5;
import android.app.Activity;
import android.app.Fragment;
import android.app.FragmentManager;
import android.os.Bundle;
/* compiled from: ReportFragment.java */
/* loaded from: classes.dex */
public class NQvZgp_17 extends Fragment {
    public KQgRr5e_0 KQgRr5e_0;

    /* compiled from: ReportFragment.java */
    /* loaded from: classes.dex */
    public interface KQgRr5e_0 {
        void KQgRr5e_0();

        void PGPF6hQ_2();

        void QxJ9d_1();
    }

    /* renamed from: KQgRr5e_0  reason: collision with other method in class */
    public static void m360KQgRr5e_0(Activity activity) {
        FragmentManager fragmentManager = activity.getFragmentManager();
        if (fragmentManager.findFragmentByTag("androidx.lifecycle.LifecycleDispatcher.report_fragment_tag") == null) {
            fragmentManager.beginTransaction().add(new NQvZgp_17(), "androidx.lifecycle.LifecycleDispatcher.report_fragment_tag").commit();
            fragmentManager.executePendingTransactions();
        }
    }

    public void Mqv2r_3(KQgRr5e_0 kQgRr5e_0) {
        this.KQgRr5e_0 = kQgRr5e_0;
    }

    public final void PGPF6hQ_2(KQgRr5e_0 kQgRr5e_0) {
        if (kQgRr5e_0 != null) {
            kQgRr5e_0.PGPF6hQ_2();
        }
    }

    public final void QxJ9d_1(KQgRr5e_0 kQgRr5e_0) {
        if (kQgRr5e_0 != null) {
            kQgRr5e_0.QxJ9d_1();
        }
    }

    @Override // android.app.Fragment
    public void onActivityCreated(Bundle bundle) {
        super.onActivityCreated(bundle);
        KQgRr5e_0(this.KQgRr5e_0);
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_CREATE);
    }

    @Override // android.app.Fragment
    public void onDestroy() {
        super.onDestroy();
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_DESTROY);
        this.KQgRr5e_0 = null;
    }

    @Override // android.app.Fragment
    public void onPause() {
        super.onPause();
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_PAUSE);
    }

    @Override // android.app.Fragment
    public void onResume() {
        super.onResume();
        QxJ9d_1(this.KQgRr5e_0);
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_RESUME);
    }

    @Override // android.app.Fragment
    public void onStart() {
        super.onStart();
        PGPF6hQ_2(this.KQgRr5e_0);
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_START);
    }

    @Override // android.app.Fragment
    public void onStop() {
        super.onStop();
        KQgRr5e_0(IFxWkV_5.KQgRr5e_0.ON_STOP);
    }

    public static NQvZgp_17 KQgRr5e_0(Activity activity) {
        return (NQvZgp_17) activity.getFragmentManager().findFragmentByTag("androidx.lifecycle.LifecycleDispatcher.report_fragment_tag");
    }

    public final void KQgRr5e_0(KQgRr5e_0 kQgRr5e_0) {
        if (kQgRr5e_0 != null) {
            kQgRr5e_0.KQgRr5e_0();
        }
    }

    public final void KQgRr5e_0(IFxWkV_5.KQgRr5e_0 kQgRr5e_0) {
        Activity activity = getActivity();
        if (activity instanceof Nm6q_10) {
            ((Nm6q_10) activity).KQgRr5e_0().m361KQgRr5e_0(kQgRr5e_0);
        } else if (activity instanceof Xgtqvk_8) {
            IFxWkV_5 lifecycle = ((Xgtqvk_8) activity).getLifecycle();
            if (lifecycle instanceof XnFJ5_9) {
                ((XnFJ5_9) lifecycle).m361KQgRr5e_0(kQgRr5e_0);
            }
        }
    }
}
