package com.bytedance.android.live.effect.smallitem;

import X.2Pr;
import X.AnonymousClass0EB;
import X.AnonymousClass0EC;
import X.AnonymousClass0HH;
import X.AnonymousClass1NN;
import X.AnonymousClass1O5;
import X.AnonymousClass29L;
import X.C13480gc;
import X.C13490gd;
import X.C31711Nx;
import X.C40901jk;
import X.C46781tE;
import X.GSF;
import X.Ls2;
import X.M12;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bytedance.android.livesdk.ui.BaseFragment;
import com.bytedance.android.livesdkapi.depend.model.LiveEffect;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import java.util.HashMap;
import kotlin.h.b.n;

public final class LiveSmallSubItemBeautyFragment extends BaseFragment {
    public static final C13480gc LJI = new C13480gc((byte) 0);
    public LiveEffect LIZ;
    public final AnonymousClass1O5 LIZIZ = new AnonymousClass1O5();
    public String LIZJ = "";
    public String LIZLLL = "";
    public String LJ = "";
    public Ls2<2Pr> LJFF;
    public HashMap LJII;

    static {
        Covode.recordClassIndex(6213);
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.bytedance.android.live.effect.smallitem.LiveSmallSubItemBeautyFragment, androidx.fragment.app.Fragment] */
    public final View LIZ(int i) {
        if (this.LJII == null) {
            this.LJII = new HashMap();
        }
        View view = (View) this.LJII.get(Integer.valueOf(i));
        if (view != null) {
            return view;
        }
        View view2 = getView();
        if (view2 == null) {
            return null;
        }
        View findViewById = view2.findViewById(i);
        this.LJII.put(Integer.valueOf(i), findViewById);
        return findViewById;
    }

    public final /* synthetic */ void onDestroyView() {
        LiveSmallSubItemBeautyFragment.super.onDestroyView();
        HashMap hashMap = this.LJII;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    /* JADX WARNING: type inference failed for: r3v0, types: [com.bytedance.android.live.effect.smallitem.LiveSmallSubItemBeautyFragment, com.bytedance.android.livesdk.ui.BaseFragment, androidx.fragment.app.Fragment] */
    public final void onCreate(Bundle bundle) {
        String str;
        String string;
        LiveSmallSubItemBeautyFragment.super.onCreate(bundle);
        Bundle arguments = getArguments();
        String str2 = "";
        if (arguments == null || (str = arguments.getString("live_effect_panel_info")) == null) {
            str = str2;
        }
        this.LIZJ = str;
        Bundle arguments2 = getArguments();
        if (!(arguments2 == null || (string = arguments2.getString("live_effect_panel_name")) == null)) {
            str2 = string;
        }
        this.LJ = str2;
    }

    /* JADX WARNING: type inference failed for: r5v0, types: [com.bytedance.android.live.effect.smallitem.LiveSmallSubItemBeautyFragment, com.bytedance.android.livesdk.ui.BaseFragment, androidx.fragment.app.Fragment] */
    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        LiveSmallSubItemBeautyFragment.super.onViewCreated(view, bundle);
        AnonymousClass1O5 r1 = this.LIZIZ;
        C31711Nx r0 = new C31711Nx(this);
        M12.LIZ(r0);
        r1.LIZJ = r0;
        RecyclerView recyclerView = (RecyclerView) LIZ(2131370437);
        n.LIZIZ(recyclerView, "");
        getContext();
        recyclerView.setLayoutManager(new LinearLayoutManager(0, false));
        RecyclerView recyclerView2 = (RecyclerView) LIZ(2131370437);
        n.LIZIZ(recyclerView2, "");
        recyclerView2.setAdapter(this.LIZIZ);
        ((RecyclerView) LIZ(2131370437)).LIZ((AnonymousClass0EC) new AnonymousClass1NN());
        RecyclerView recyclerView3 = (RecyclerView) LIZ(2131370437);
        n.LIZIZ(recyclerView3, "");
        recyclerView3.setItemAnimator((AnonymousClass0EB) null);
        C40901jk r12 = (C40901jk) LIZ(2131368355);
        n.LIZIZ(r12, "");
        r12.setText(this.LIZLLL);
        ((ImageView) LIZ(2131362572)).setOnClickListener(new C13490gd(this));
        DataChannel LIZ2 = GSF.LIZ(this);
        if (LIZ2 != null) {
            LIZ2.LIZIZ(this, AnonymousClass29L.class, new C46781tE(this));
        }
    }

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