package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import androidx.databinding.n;
import cg.a;

/* loaded from: classes4.dex */
public class n1 extends m1 implements a.InterfaceC0282a {
    private static final n.i F = null;
    private static final SparseIntArray G = null;
    private final LinearLayout C;
    private final View.OnClickListener D;
    private long E;

    public n1(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 2, F, G));
    }

    private boolean V(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.E |= 2;
        }
        return true;
    }

    private boolean W(androidx.lifecycle.a0 a0Var, int i10) {
        if (i10 != yf.a.f52370a) {
            return false;
        }
        synchronized (this) {
            this.E |= 1;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (yf.a.f52373d != i10) {
            return false;
        }
        U((jg.e1) obj);
        return true;
    }

    @Override // zf.m1
    public void U(jg.e1 e1Var) {
        this.B = e1Var;
        synchronized (this) {
            this.E |= 4;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.e1 e1Var = this.B;
        if (e1Var != null) {
            e1Var.Q();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.E;
            this.E = 0L;
        }
        jg.e1 e1Var = this.B;
        boolean z10 = false;
        String str = null;
        if ((15 & j10) != 0) {
            if ((j10 & 13) != 0) {
                androidx.lifecycle.a0 X = e1Var != null ? e1Var.X() : null;
                S(0, X);
                z10 = androidx.databinding.n.M(X != null ? (Boolean) X.f() : null);
            }
            if ((j10 & 14) != 0) {
                androidx.lifecycle.a0 S = e1Var != null ? e1Var.S() : null;
                S(1, S);
                if (S != null) {
                    str = (String) S.f();
                }
            }
        }
        if ((j10 & 13) != 0) {
            this.A.setEnabled(z10);
        }
        if ((8 & j10) != 0) {
            this.A.setOnClickListener(this.D);
        }
        if ((j10 & 14) != 0) {
            b4.e.e(this.A, str);
        }
    }

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

    private n1(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 2, (Button) objArr[1]);
        this.E = -1L;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.C = linearLayout;
        linearLayout.setTag(null);
        this.A.setTag(null);
        P(view);
        this.D = new cg.a(this, 1);
        B();
    }
}
