package com.ss.android.ugc.aweme.notification.vh;

import X.0HH;
import X.4Fc;
import X.7he;
import X.C0295Crj;
import X.C1481DaP;
import X.C3909EWj;
import X.C3910EWk;
import X.C3912EWm;
import X.C3913EWn;
import X.M12;
import X.Mjy;
import X.Qeg;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import com.bytedance.covode.number.Covode;
import com.bytedance.ies.powerlist.PowerCell;
import kotlin.h.b.n;

public final class SubscribeSettingsCell extends PowerCell<C3910EWk> {
    public static final C3913EWn LJIIL = new C3913EWn((byte) 0);
    public Qeg LIZ;
    public 4Fc LIZIZ;
    public C3910EWk LJIIIZ;
    public int LJIIJ;
    public int LJIIJJI;
    public final C0295Crj LJIILIIL = 7he.LIZ(C3912EWm.LIZ);
    public Qeg LJIILJJIL;

    static {
        Covode.recordClassIndex(95807);
    }

    public final Mjy LIZ() {
        return (Mjy) this.LJIILIIL.getValue();
    }

    public final void bL_() {
        super.bL_();
        LIZ().LIZ();
    }

    public static final /* synthetic */ 4Fc LIZ(SubscribeSettingsCell subscribeSettingsCell) {
        4Fc r1 = subscribeSettingsCell.LIZIZ;
        if (r1 == null) {
            n.LIZ("");
        }
        return r1;
    }

    public static final /* synthetic */ C3910EWk LIZIZ(SubscribeSettingsCell subscribeSettingsCell) {
        C3910EWk eWk = subscribeSettingsCell.LJIIIZ;
        if (eWk == null) {
            n.LIZ("");
        }
        return eWk;
    }

    public final View LIZ(ViewGroup viewGroup) {
        M12.LIZ(viewGroup);
        View LIZ2 = 0HH.LIZ(LayoutInflater.from(viewGroup.getContext()), 2131558875, viewGroup, false);
        n.LIZIZ(LIZ2, "");
        Qeg findViewById = LIZ2.findViewById(2131368137);
        n.LIZIZ(findViewById, "");
        this.LJIILJJIL = findViewById;
        Qeg findViewById2 = LIZ2.findViewById(2131368109);
        n.LIZIZ(findViewById2, "");
        this.LIZ = findViewById2;
        4Fc findViewById3 = LIZ2.findViewById(2131368135);
        n.LIZIZ(findViewById3, "");
        this.LIZIZ = findViewById3;
        return LIZ2;
    }

    public final /* synthetic */ void LIZ(C1481DaP daP) {
        int i;
        String str;
        C3910EWk eWk = (C3910EWk) daP;
        M12.LIZ(eWk);
        super.LIZ(eWk);
        this.LJIIIZ = eWk;
        if (eWk == null) {
            n.LIZ("");
        }
        Integer num = eWk.LIZ;
        int i2 = 0;
        if (num != null) {
            i = num.intValue();
        } else {
            i = 0;
        }
        this.LJIIJ = i;
        C3910EWk eWk2 = this.LJIIIZ;
        if (eWk2 == null) {
            n.LIZ("");
        }
        Integer num2 = eWk2.LIZIZ;
        if (num2 != null) {
            i2 = num2.intValue();
        }
        this.LJIIJJI = i2;
        Qeg qeg = this.LJIILJJIL;
        if (qeg == null) {
            n.LIZ("");
        }
        C3910EWk eWk3 = this.LJIIIZ;
        if (eWk3 == null) {
            n.LIZ("");
        }
        qeg.setText(eWk3.LIZJ);
        4Fc r2 = this.LIZIZ;
        if (r2 == null) {
            n.LIZ("");
        }
        C3910EWk eWk4 = this.LJIIIZ;
        if (eWk4 == null) {
            n.LIZ("");
        }
        r2.setChecked(!n.LIZ(eWk4.LJFF, true));
        Qeg qeg2 = this.LIZ;
        if (qeg2 == null) {
            n.LIZ("");
        }
        C3910EWk eWk5 = this.LJIIIZ;
        if (eWk5 == null) {
            n.LIZ("");
        }
        if (!n.LIZ(eWk5.LJFF, true)) {
            C3910EWk eWk6 = this.LJIIIZ;
            if (eWk6 == null) {
                n.LIZ("");
            }
            str = eWk6.LIZLLL;
        } else {
            C3910EWk eWk7 = this.LJIIIZ;
            if (eWk7 == null) {
                n.LIZ("");
            }
            str = eWk7.LJ;
        }
        qeg2.setText(str);
        4Fc r1 = this.LIZIZ;
        if (r1 == null) {
            n.LIZ("");
        }
        r1.setOnClickListener(new C3909EWj(this));
    }
}
