package u7;

import android.graphics.drawable.Drawable;
import android.util.SparseIntArray;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.n;
import f8.b;

/* loaded from: classes.dex */
public class h0 extends g0 implements b.a {
    private static final n.i H = null;
    private static final SparseIntArray I = null;
    private final View.OnClickListener F;
    private long G;

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.G = 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.d) obj);
        return true;
    }

    public void U(m8.d dVar) {
        this.E = dVar;
        synchronized (this) {
            this.G |= 1;
        }
        f(h7.a.f20950g);
        super.J();
    }

    @Override // f8.b.a
    public final void a(int i10, View view) {
        m8.d dVar = this.E;
        if (dVar != null) {
            dVar.h();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        int i10;
        View.OnTouchListener onTouchListener;
        Drawable drawable;
        int i11;
        synchronized (this) {
            j10 = this.G;
            this.G = 0L;
        }
        m8.d dVar = this.E;
        long j11 = 3 & j10;
        if (j11 == 0 || dVar == null) {
            i10 = 0;
            onTouchListener = null;
            drawable = null;
            i11 = 0;
        } else {
            onTouchListener = dVar.f();
            i10 = dVar.g();
            i11 = dVar.e();
            drawable = dVar.c(x().getContext());
        }
        if ((j10 & 2) != 0) {
            this.A.setOnClickListener(this.F);
        }
        if (j11 != 0) {
            g.i(this.A, onTouchListener);
            this.B.setVisibility(i10);
            b4.c.a(this.C, drawable);
            g.j(this.D, Integer.valueOf(i11));
        }
    }

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

    private h0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (LinearLayout) objArr[0], (ImageView) objArr[3], (ImageView) objArr[1], (TextView) objArr[2]);
        this.G = -1L;
        this.A.setTag(null);
        this.B.setTag(null);
        this.C.setTag(null);
        this.D.setTag(null);
        P(view);
        this.F = new f8.b(this, 1);
        B();
    }
}
