package com.bytedance.android.livesdk.rank.impl;

import X.C1044Fun;
import X.C1119Fw0;
import X.C1120Fw1;
import X.C1121Fw2;
import X.C1430G2l;
import X.HFX;
import X.M12;
import android.os.Bundle;
import android.view.View;
import com.bytedance.android.livesdk.LiveDialogFragment;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.sdk.datachannel.DataChannel;
import java.util.HashMap;

public final class RankOptOutTipsDialog extends LiveDialogFragment {
    public static final String LIZ = RankOptOutTipsDialog.class.getSimpleName();
    public static final C1120Fw1 LIZIZ = new C1120Fw1((byte) 0);
    public HashMap LIZJ;

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

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

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

    static {
        Covode.recordClassIndex(20377);
    }

    public final C1044Fun LIZ() {
        C1044Fun fun = new C1044Fun(2131561668);
        fun.LJII = -1;
        fun.LJIIIIZZ = -2;
        fun.LIZIZ = 2131887240;
        fun.LJI = 80;
        return fun;
    }

    public final void onViewCreated(View view, Bundle bundle) {
        Boolean bool;
        M12.LIZ(view);
        super.onViewCreated(view, bundle);
        DataChannel dataChannel = this.LJIILIIL;
        if (dataChannel != null) {
            bool = (Boolean) dataChannel.LIZIZ(HFX.class);
        } else {
            bool = null;
        }
        if (C1430G2l.LIZIZ(bool)) {
            dismiss();
            return;
        }
        LIZ(2131368191).setOnClickListener(new C1119Fw0(this));
        LIZ(2131370151).setOnClickListener(new C1121Fw2(this));
    }
}
