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 j0 extends i0 {
    private static final n.i F = null;
    private static final SparseIntArray G = null;
    private long E;

    public j0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 3, 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.j2) obj);
        return true;
    }

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

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        String str;
        synchronized (this) {
            j10 = this.E;
            this.E = 0L;
        }
        jg.j2 j2Var = this.D;
        long j11 = j10 & 3;
        String str2 = null;
        int i10 = 0;
        if (j11 != 0) {
            if (j2Var != null) {
                str2 = j2Var.g();
                str = j2Var.h();
            } else {
                str = null;
            }
            boolean z10 = str2 != null;
            if (j11 != 0) {
                j10 |= z10 ? 8L : 4L;
            }
            if (!z10) {
                i10 = 8;
            }
        } else {
            str = null;
        }
        if ((j10 & 3) != 0) {
            b4.e.e(this.B, str2);
            this.B.setVisibility(i10);
            b4.e.e(this.C, str);
            u7.g.l(this.C, str);
        }
    }

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

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