package u7;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.n;

/* loaded from: classes.dex */
public class j0 extends i0 {
    private static final n.i E = null;
    private static final SparseIntArray F = null;
    private long D;

    public j0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 2, 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 (h7.a.f20950g != i10) {
            return false;
        }
        U((m8.b) obj);
        return true;
    }

    public void U(m8.b bVar) {
        this.C = bVar;
        synchronized (this) {
            this.D |= 1;
        }
        f(h7.a.f20950g);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.D;
            this.D = 0L;
        }
        m8.b bVar = this.C;
        long j11 = j10 & 3;
        int c10 = (j11 == 0 || bVar == null) ? 0 : bVar.c();
        if (j11 != 0) {
            g.j(this.B, Integer.valueOf(c10));
        }
    }

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

    private j0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (LinearLayout) objArr[0], (TextView) objArr[1]);
        this.D = -1L;
        this.A.setTag(null);
        this.B.setTag(null);
        P(view);
        B();
    }
}
