package com.ss.android.ugc.aweme.story.archive;

import X.0HH;
import X.BDb;
import X.C03012Pr;
import X.C16832uR;
import X.C30953c7;
import X.C30983cA;
import X.C31003cC;
import X.C67224tW;
import X.C67264ta;
import X.C67274tb;
import X.C67284tc;
import X.CZv;
import X.Crj;
import X.Ls2;
import X.LsC;
import X.M12;
import android.content.Context;
import android.os.Bundle;
import android.util.SparseArray;
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 com.bytedance.router.arg.RouteArgExtension;
import kotlin.h.b.n;

@CZv
public final class StoryArchiveFragment extends BaseFragment {
    public final Crj LJ = RouteArgExtension.INSTANCE.optionalArgNotNull(this, C67284tc.LIZ, "enter_from", String.class);
    public SparseArray LJFF;

    static {
        Covode.recordClassIndex(116856);
    }

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

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

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

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

    public final void onViewCreated(View view, Bundle bundle) {
        String str;
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        Context context = getContext();
        if (context == null || (str = context.getString(2131833048)) == null) {
            str = "Stories archive";
        }
        n.LIZIZ(str, "");
        C16832uR r5 = new C16832uR();
        C30983cA r1 = new C30983cA();
        r1.LIZ(2131755248);
        r1.LIZIZ = true;
        r1.LIZ((Ls2<C03012Pr>) new C67274tb(this));
        r5.LIZ(r1);
        C31003cC r0 = new C31003cC();
        r0.LIZ(str);
        r5.LIZ(r0);
        ((C30953c7) LIZ(2131367895)).setNavActions(r5);
        BDb.LIZ(this, new C67224tW(this));
    }

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