package hc;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.ScrollView;
import androidx.databinding.n;
import gc.a2;
import gc.q0;
import ic.a;

/* loaded from: classes4.dex */
public class v extends u implements a.InterfaceC0487a {
    private static final n.i I = null;
    private static final SparseIntArray J;
    private final ScrollView C;
    private final Button D;
    private final Button E;
    private final View.OnClickListener F;
    private final View.OnClickListener G;
    private long H;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        J = sparseIntArray;
        sparseIntArray.put(a2.C, 3);
    }

    public v(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 4, I, J));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.H = 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 (gc.e.f19610b != i10) {
            return false;
        }
        U((q0) obj);
        return true;
    }

    @Override // hc.u
    public void U(q0 q0Var) {
        this.B = q0Var;
        synchronized (this) {
            this.H |= 1;
        }
        f(gc.e.f19610b);
        super.J();
    }

    @Override // ic.a.InterfaceC0487a
    public final void a(int i10, View view) {
        if (i10 == 1) {
            q0 q0Var = this.B;
            if (q0Var != null) {
                q0Var.U();
                return;
            }
            return;
        }
        if (i10 != 2) {
            return;
        }
        q0 q0Var2 = this.B;
        if (q0Var2 != null) {
            q0Var2.T();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.H;
            this.H = 0L;
        }
        if ((j10 & 2) != 0) {
            this.D.setOnClickListener(this.F);
            this.E.setOnClickListener(this.G);
        }
    }

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

    private v(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (ImageView) objArr[3]);
        this.H = -1L;
        ScrollView scrollView = (ScrollView) objArr[0];
        this.C = scrollView;
        scrollView.setTag(null);
        Button button = (Button) objArr[1];
        this.D = button;
        button.setTag(null);
        Button button2 = (Button) objArr[2];
        this.E = button2;
        button2.setTag(null);
        P(view);
        this.F = new ic.a(this, 1);
        this.G = new ic.a(this, 2);
        B();
    }
}
