package com.bytedance.android.live.liveinteract.multilive.guset.fragment;

import X.C11670dh;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import com.bytedance.android.livesdk.LiveDialogFragment;
import com.bytedance.covode.number.Covode;
import java.util.HashMap;
import kotlin.h.b.n;

public abstract class PreviewDialogFragment extends LiveDialogFragment {
    public HashMap LIZ;

    static {
        Covode.recordClassIndex(8973);
    }

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

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

    public void z_() {
        HashMap hashMap = this.LIZ;
        if (hashMap != null) {
            hashMap.clear();
        }
    }

    /* JADX WARNING: type inference failed for: r2v0, types: [com.bytedance.android.live.liveinteract.multilive.guset.fragment.PreviewDialogFragment, androidx.fragment.app.Fragment, androidx.fragment.app.DialogFragment] */
    public LayoutInflater onGetLayoutInflater(Bundle bundle) {
        LayoutInflater cloneInContext = PreviewDialogFragment.super.onGetLayoutInflater(bundle).cloneInContext(C11670dh.LIZ((Context) getActivity()));
        n.LIZIZ(cloneInContext, "");
        return cloneInContext;
    }
}
