package com.bytedance.android.livesdk.settings.customtab;

import X.0UO;
import X.0b0;
import X.0dh;
import X.1MZ;
import X.1sU;
import X.283;
import X.2sR;
import X.C0933Ft0;
import X.C0934Ft1;
import X.C1044Fun;
import X.C1430G2l;
import X.FdT;
import X.FdU;
import X.Lea;
import X.M12;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.EditText;
import com.bytedance.android.livesdk.LiveDialogFragment;
import com.bytedance.covode.number.Covode;
import com.google.gson.Gson;
import java.util.HashMap;
import kotlin.h.b.n;
import kotlin.o.z;

public class KevaTestDialog extends LiveDialogFragment {
    public static Gson LIZJ;
    public static 2sR<?> LIZLLL;
    public static final C0934Ft1 LJ = new C0934Ft1((byte) 0);
    public FdU LIZ;
    public 1MZ LIZIZ;
    public 1sU LJFF;
    public HashMap LJI;

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

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

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

    public final void LIZLLL() {
        1MZ r0 = this.LIZIZ;
        if (r0 != null) {
            C1430G2l.LIZIZ((EditText) r0);
        }
    }

    public final void LJ() {
        1sU r1 = this.LJFF;
        if (r1 != null) {
            r1.setOnClickListener(new FdT(this));
        }
    }

    static {
        Covode.recordClassIndex(20754);
        Gson gson = 0UO.LIZIZ;
        n.LIZIZ(gson, "");
        LIZJ = gson;
    }

    public final C1044Fun LIZ() {
        C1044Fun fun = new C1044Fun(2131561882);
        fun.LJIIJJI = 48;
        fun.LJI = 17;
        fun.LJII = -1;
        fun.LJIIIIZZ = -2;
        return fun;
    }

    public LayoutInflater onGetLayoutInflater(Bundle bundle) {
        LayoutInflater cloneInContext = KevaTestDialog.super.onGetLayoutInflater(bundle).cloneInContext(0dh.LIZ(getActivity()));
        n.LIZIZ(cloneInContext, "");
        return cloneInContext;
    }

    public void onViewCreated(View view, Bundle bundle) {
        Class<?> cls;
        String str;
        Object LIZ2;
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        283 findViewById = view.findViewById(2131372066);
        283 findViewById2 = view.findViewById(2131372464);
        1MZ findViewById3 = view.findViewById(2131364636);
        this.LIZIZ = findViewById3;
        2sR<?> r0 = LIZLLL;
        Object obj = null;
        if (r0 == null || (LIZ2 = r0.LIZ()) == null) {
            cls = null;
        } else {
            cls = LIZ2.getClass();
        }
        Object LJIIIZ = Lea.LJIIIZ(z.LIZ(String.valueOf(cls), new String[]{"."}, 0, 6));
        if (findViewById != null) {
            Object[] objArr = new Object[1];
            2sR<?> r02 = LIZLLL;
            if (r02 == null || (str = r02.LIZJ) == null) {
                str = "";
            }
            objArr[0] = str;
            findViewById.setText(0b0.LIZ(2131834201, objArr));
        }
        if (findViewById2 != null) {
            findViewById2.setText(0b0.LIZ(2131834203, new Object[]{LJIIIZ}));
        }
        if (findViewById3 != null) {
            2sR<?> r03 = LIZLLL;
            if (r03 != null) {
                obj = r03.LIZ();
            }
            findViewById3.setText(String.valueOf(obj));
        }
        this.LJFF = view.findViewById(2131363030);
        1sU findViewById4 = view.findViewById(2131362956);
        LJ();
        if (findViewById4 != null) {
            findViewById4.setOnClickListener(new C0933Ft0(this));
        }
    }
}
