package zf;

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

/* loaded from: classes4.dex */
public class l1 extends k1 implements a.InterfaceC0282a {
    private static final n.i F = null;
    private static final SparseIntArray G = null;
    private final LinearLayout C;
    private final View.OnClickListener D;
    private long E;

    public l1(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 (yf.a.f52373d != i10) {
            return false;
        }
        U((jg.v0) obj);
        return true;
    }

    @Override // zf.k1
    public void U(jg.v0 v0Var) {
        this.B = v0Var;
        synchronized (this) {
            this.E |= 1;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.v0 v0Var = this.B;
        if (v0Var != null) {
            v0Var.k0();
        }
    }

    @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 l1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (Button) objArr[1]);
        this.E = -1L;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.C = linearLayout;
        linearLayout.setTag(null);
        this.A.setTag(null);
        P(view);
        this.D = new cg.a(this, 1);
        B();
    }
}
