package zf;

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

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

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

    @Override // zf.o
    public void U(jg.j2 j2Var) {
        this.C = j2Var;
        synchronized (this) {
            this.D |= 1;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.D;
            this.D = 0L;
        }
        jg.j2 j2Var = this.C;
        long j11 = j10 & 3;
        String a10 = (j11 == 0 || j2Var == null) ? null : j2Var.a();
        if (j11 != 0) {
            b4.e.e(this.A, a10);
        }
    }

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

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