package od;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.databinding.n;
import ud.a;

/* loaded from: classes4.dex */
public class j extends i implements a.InterfaceC0889a {
    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 j(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 (ld.a.f27862b != i10) {
            return false;
        }
        U((nd.b) obj);
        return true;
    }

    @Override // od.i
    public void U(nd.b bVar) {
        this.B = bVar;
        synchronized (this) {
            this.E |= 1;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // ud.a.InterfaceC0889a
    public final void a(int i10, View view) {
        nd.b bVar = this.B;
        if (bVar != null) {
            bVar.T();
        }
    }

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

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

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