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

import X.AnonymousClass0AP;
import X.AnonymousClass0HH;
import X.C12460ey;
import X.C12790fV;
import X.C13010fr;
import X.M12;
import X.Qu7;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.fragment.app.Fragment;
import com.bytedance.android.livesdk.ui.BaseFragment;
import com.bytedance.covode.number.Covode;
import java.util.HashMap;
import kotlin.h.b.n;

public final class PreviewBeautyFragment extends BaseFragment {
    public static final C12790fV LIZJ = new C12790fV((byte) 0);
    public C12460ey LIZ;
    public C13010fr LIZIZ;
    public HashMap LIZLLL;

    static {
        Covode.recordClassIndex(5997);
    }

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

    /* JADX WARNING: type inference failed for: r2v1, types: [androidx.fragment.app.Fragment, com.bytedance.android.live.effect.beauty.LiveBeautyFragment] */
    public final void onViewCreated(View view, Bundle bundle) {
        M12.LIZ(view);
        PreviewBeautyFragment.super.onViewCreated(view, bundle);
        if (this.LIZLLL == null) {
            this.LIZLLL = new HashMap();
        }
        View view2 = (View) this.LIZLLL.get(2131370438);
        if (view2 == null) {
            View view3 = getView();
            if (view3 == null) {
                view2 = null;
            } else {
                view2 = view3.findViewById(2131370438);
                this.LIZLLL.put(2131370438, view2);
            }
        }
        Qu7 qu7 = (Qu7) view2;
        n.LIZIZ(qu7, "");
        C12460ey r1 = this.LIZ;
        C13010fr r0 = this.LIZIZ;
        M12.LIZ(qu7);
        ? liveBeautyFragment = new LiveBeautyFragment();
        liveBeautyFragment.LIZ = qu7;
        liveBeautyFragment.LIZJ = r1;
        liveBeautyFragment.LIZLLL = r0;
        AnonymousClass0AP LIZ2 = getChildFragmentManager().LIZ();
        LIZ2.LIZ(2131362645, (Fragment) liveBeautyFragment);
        LIZ2.LJ();
    }

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