package zb;

import android.graphics.drawable.Drawable;
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 n extends m implements b.a {
    private static final n.i F = null;
    private static final SparseIntArray G = null;
    private final ConstraintLayout C;
    private final View.OnClickListener D;
    private long E;

    public n(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 2, F, G));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.E = 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.e) obj);
        return true;
    }

    public void U(pb.e eVar) {
        this.B = eVar;
        synchronized (this) {
            this.E |= 1;
        }
        f(ob.a.f31097f);
        super.J();
    }

    @Override // bc.b.a
    public final void a(int i10, View view) {
        pb.e eVar = this.B;
        if (eVar != null) {
            dn.a d10 = eVar.d();
            if (d10 != null) {
            }
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        String str;
        Drawable drawable;
        synchronized (this) {
            j10 = this.E;
            this.E = 0L;
        }
        pb.e eVar = this.B;
        long j11 = 3 & j10;
        if (j11 == 0 || eVar == null) {
            str = null;
            drawable = null;
        } else {
            str = eVar.e();
            drawable = eVar.c(x().getContext());
        }
        if ((j10 & 2) != 0) {
            this.C.setOnClickListener(this.D);
        }
        if (j11 != 0) {
            b4.e.c(this.A, drawable);
            b4.e.e(this.A, str);
        }
    }

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

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