package zb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.TextView;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import bc.b;

/* loaded from: classes4.dex */
public class j extends i implements b.a {
    private static final n.i H = null;
    private static final SparseIntArray I = null;
    private final ConstraintLayout D;
    private final View.OnClickListener E;
    private final View.OnClickListener F;
    private long G;

    public j(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 3, H, I));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.G = 2L;
        }
        J();
    }

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        return false;
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (ob.a.f31097f != i10) {
            return false;
        }
        U((pb.a) obj);
        return true;
    }

    @Override // zb.i
    public void U(pb.a aVar) {
        this.C = aVar;
        synchronized (this) {
            this.G |= 1;
        }
        f(ob.a.f31097f);
        super.J();
    }

    @Override // bc.b.a
    public final void a(int i10, View view) {
        if (i10 == 1) {
            pb.a aVar = this.C;
            if (aVar != null) {
                dn.a d10 = aVar.d();
                if (d10 != null) {
                    return;
                }
                return;
            }
            return;
        }
        if (i10 != 2) {
            return;
        }
        pb.a aVar2 = this.C;
        if (aVar2 != null) {
            dn.a g10 = aVar2.g();
            if (g10 != null) {
            }
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        if ((j10 & 2) != 0) {
            this.A.setOnClickListener(this.F);
            this.B.setOnClickListener(this.E);
        }
    }

    @Override // androidx.databinding.n
    public boolean z() {
        synchronized (this) {
            return this.G != 0;
        }
    }

    private j(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (TextView) objArr[1], (TextView) objArr[2]);
        this.G = -1L;
        this.A.setTag(null);
        ConstraintLayout constraintLayout = (ConstraintLayout) objArr[0];
        this.D = constraintLayout;
        constraintLayout.setTag(null);
        this.B.setTag(null);
        P(view);
        this.E = new bc.b(this, 2);
        this.F = new bc.b(this, 1);
        B();
    }
}
