package com.vinfast.companion.settings.ui.virtualAssistant.glaction.glWeather;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes6.dex */
public abstract class Hilt_GLWeatherActionFragment<VB extends androidx.viewbinding.ViewBinding> extends com.vinfast.companion.core.base.fragment.BaseFragment<VB> {
    private android.content.ContextWrapper x;
    private boolean y;
    private boolean z;

    Hilt_GLWeatherActionFragment(kotlin.jvm.functions.Function1 function1) {
        super(function1);
        this.z = false;
    }

    private void e0() {
        if (this.x == null) {
            this.x = dagger.hilt.android.internal.managers.FragmentComponentManager.b(super/*com.vinfast.companion.core.base.fragment.Hilt_HiltFragment*/.getContext(), this);
            this.y = dagger.hilt.android.flags.FragmentGetContextFix.a(super/*com.vinfast.companion.core.base.fragment.Hilt_HiltFragment*/.getContext());
        }
    }

    protected void f0() {
        if (this.z) {
            return;
        }
        this.z = true;
        ((com.vinfast.companion.settings.ui.virtualAssistant.glaction.glWeather.GLWeatherActionFragment_GeneratedInjector) ((dagger.hilt.internal.GeneratedComponentManagerHolder) dagger.hilt.internal.UnsafeCasts.a(this)).J()).o2((com.vinfast.companion.settings.ui.virtualAssistant.glaction.glWeather.GLWeatherActionFragment) dagger.hilt.internal.UnsafeCasts.a(this));
    }

    public android.content.Context getContext() {
        if (super/*com.vinfast.companion.core.base.fragment.Hilt_HiltFragment*/.getContext() == null && !this.y) {
            return null;
        }
        e0();
        return this.x;
    }

    public void onAttach(android.content.Context context) {
        super.onAttach(context);
        e0();
        f0();
    }

    public android.view.LayoutInflater onGetLayoutInflater(android.os.Bundle bundle) {
        android.view.LayoutInflater layoutInflaterOnGetLayoutInflater = super/*com.vinfast.companion.core.base.fragment.Hilt_HiltFragment*/.onGetLayoutInflater(bundle);
        return layoutInflaterOnGetLayoutInflater.cloneInContext(dagger.hilt.android.internal.managers.FragmentComponentManager.c(layoutInflaterOnGetLayoutInflater, this));
    }

    public void onAttach(android.app.Activity activity) {
        super/*com.vinfast.companion.core.base.fragment.Hilt_HiltFragment*/.onAttach(activity);
        android.content.ContextWrapper contextWrapper = this.x;
        dagger.hilt.internal.Preconditions.d(contextWrapper == null || dagger.hilt.android.internal.managers.FragmentComponentManager.d(contextWrapper) == activity, "onAttach called multiple times with different Context! Hilt Fragments should not be retained.", new java.lang.Object[0]);
        e0();
        f0();
    }
}
