package od;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcDialogFragmentView;

/* loaded from: classes4.dex */
public class v0 extends u0 {
    private static final n.i F = null;
    private static final SparseIntArray G;
    private long E;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        G = sparseIntArray;
        sparseIntArray.put(ld.j.f27939y, 2);
    }

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

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

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

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

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (ld.a.f27862b != i10) {
            return false;
        }
        V((vd.k) obj);
        return true;
    }

    public void V(vd.k kVar) {
        this.D = kVar;
        synchronized (this) {
            this.E |= 2;
        }
        f(ld.a.f27862b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.E;
            this.E = 0L;
        }
        vd.k kVar = this.D;
        long j11 = j10 & 7;
        String str = null;
        if (j11 != 0) {
            androidx.lifecycle.a0 R = kVar != null ? kVar.R() : null;
            S(0, R);
            if (R != null) {
                str = (String) R.f();
            }
        }
        if (j11 != 0) {
            u7.g.l(this.C, str);
        }
    }

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

    private v0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (TextView) objArr[2], (CpcDialogFragmentView) objArr[0], (Button) objArr[1]);
        this.E = -1L;
        this.B.setTag(null);
        this.C.setTag(null);
        P(view);
        B();
    }
}
