package fd;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ScrollView;
import android.widget.TextView;
import androidx.databinding.n;
import androidx.lifecycle.a0;

/* loaded from: classes4.dex */
public class j extends i {
    private static final n.i K = null;
    private static final SparseIntArray L;
    private final ScrollView I;
    private long J;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        L = sparseIntArray;
        sparseIntArray.put(ed.j.f16921q, 2);
        sparseIntArray.put(ed.j.f16920p, 3);
        sparseIntArray.put(ed.j.f16919o, 4);
        sparseIntArray.put(ed.j.f16925u, 5);
        sparseIntArray.put(ed.j.f16918n, 6);
        sparseIntArray.put(ed.j.f16930z, 7);
    }

    public j(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 8, K, L));
    }

    private boolean U(a0 a0Var, int i10) {
        if (i10 != ed.a.f16891a) {
            return false;
        }
        synchronized (this) {
            this.J |= 1;
        }
        return true;
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.J = 4L;
        }
        J();
    }

    @Override // androidx.databinding.n
    protected boolean F(int i10, Object obj, int i11) {
        if (i10 != 0) {
            return false;
        }
        return U((a0) obj, i11);
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (ed.a.f16892b != i10) {
            return false;
        }
        V((hd.g) obj);
        return true;
    }

    public void V(hd.g gVar) {
        this.H = gVar;
        synchronized (this) {
            this.J |= 2;
        }
        f(ed.a.f16892b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.J;
            this.J = 0L;
        }
        hd.g gVar = this.H;
        long j11 = j10 & 7;
        String str = null;
        if (j11 != 0) {
            a0 X = gVar != null ? gVar.X() : null;
            S(0, X);
            if (X != null) {
                str = (String) X.f();
            }
        }
        if (j11 != 0) {
            b4.e.e(this.D, str);
        }
    }

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

    private j(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (TextView) objArr[6], (TextView) objArr[4], (ImageView) objArr[3], (TextView) objArr[1], (LinearLayout) objArr[2], (TextView) objArr[5], (TextView) objArr[7]);
        this.J = -1L;
        this.D.setTag(null);
        ScrollView scrollView = (ScrollView) objArr[0];
        this.I = scrollView;
        scrollView.setTag(null);
        P(view);
        B();
    }
}
