package fd;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import androidx.databinding.n;
import kd.a;

/* loaded from: classes4.dex */
public class l extends k implements a.InterfaceC0545a {
    private static final n.i E = null;
    private static final SparseIntArray F = null;
    private final View.OnClickListener C;
    private long D;

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.D = 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 (ed.a.f16893c != i10) {
            return false;
        }
        U((jd.a) obj);
        return true;
    }

    public void U(jd.a aVar) {
        this.B = aVar;
        synchronized (this) {
            this.D |= 1;
        }
        f(ed.a.f16893c);
        super.J();
    }

    @Override // kd.a.InterfaceC0545a
    public final void a(int i10, View view) {
        jd.a aVar = this.B;
        if (aVar != null) {
            aVar.d();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.D;
            this.D = 0L;
        }
        jd.a aVar = this.B;
        long j11 = 3 & j10;
        CharSequence c10 = (j11 == 0 || aVar == null) ? null : aVar.c();
        if ((j10 & 2) != 0) {
            this.A.setOnClickListener(this.C);
        }
        if (j11 != 0) {
            b4.e.e(this.A, c10);
        }
    }

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

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