package com.ss.android.ugc.aweme.qna.fragment;

import X.0HH;
import X.AnonymousClass3ZQ;
import X.AnonymousClass4ZZ;
import X.C03012Pr;
import X.C17952wF;
import X.C17962wG;
import X.C17972wH;
import X.C18812xd;
import X.CZv;
import X.LnI;
import X.LsC;
import X.M12;
import X.OQh;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.SparseArray;
import android.util.TypedValue;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.foundation.fragment.BaseFragment;
import com.bytedance.ies.foundation.fragment.BaseFragmentViewModel;
import kotlin.h.b.n;

@CZv
public class QuestionUnavailableFragment extends BaseFragment {
    public SparseArray LJ;

    static {
        Covode.recordClassIndex(101771);
    }

    public final View LIZ(int i) {
        if (this.LJ == null) {
            this.LJ = new SparseArray();
        }
        View view = (View) this.LJ.get(i);
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJ.put(i, findViewById);
        return findViewById;
    }

    public final void LJI() {
        SparseArray sparseArray = this.LJ;
        if (sparseArray != null) {
            sparseArray.clear();
        }
    }

    public /* synthetic */ void onDestroyView() {
        super.onDestroyView();
        LJI();
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        LIZ((LsC<? super BaseFragmentViewModel, C03012Pr>) C17952wF.LIZ);
    }

    public void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        ((AnonymousClass4ZZ) LIZ(2131369118)).setOnClickListener(new C17972wH(this));
        OQh oQh = new OQh();
        oQh.LIZ(C18812xd.LIZ((LsC<? super AnonymousClass3ZQ, C03012Pr>) C17962wG.LIZ));
        String string = requireContext().getString(2131831318);
        n.LIZIZ(string, "");
        oQh.LIZ(string);
        Resources system = Resources.getSystem();
        n.LIZIZ(system, "");
        int LIZ = LnI.LIZ(TypedValue.applyDimension(1, 69.0f, system.getDisplayMetrics()));
        Resources system2 = Resources.getSystem();
        n.LIZIZ(system2, "");
        oQh.LIZIZ(LIZ, LnI.LIZ(TypedValue.applyDimension(1, 69.0f, system2.getDisplayMetrics())));
        LIZ(2131369209).setStatus(oQh);
    }

    public View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
        M12.LIZ(layoutInflater);
        return 0HH.LIZ(layoutInflater, 2131560948, viewGroup, false);
    }
}
