package ae;

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

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

    public r(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 1, D, E));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.C = 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 (yd.a.f52236d != i10) {
            return false;
        }
        U((ge.h) obj);
        return true;
    }

    public void U(ge.h hVar) {
        this.B = hVar;
        synchronized (this) {
            this.C |= 1;
        }
        f(yd.a.f52236d);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.C;
            this.C = 0L;
        }
        ge.h hVar = this.B;
        long j11 = j10 & 3;
        Drawable c10 = (j11 == 0 || hVar == null) ? null : hVar.c(x().getContext());
        if (j11 != 0) {
            b4.c.a(this.A, c10);
        }
    }

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

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