package zf;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import androidx.databinding.n;
import ca.canadapost.core.common.ui.CpcFragmentContainerView;
import cg.a;

/* loaded from: classes4.dex */
public class h3 extends g3 implements a.InterfaceC0282a {
    private static final n.i H = null;
    private static final SparseIntArray I = null;
    private final CpcFragmentContainerView D;
    private final View.OnClickListener E;
    private final View.OnClickListener F;
    private long G;

    public h3(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 3, 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 (yf.a.f52373d != i10) {
            return false;
        }
        U((jg.a4) obj);
        return true;
    }

    public void U(jg.a4 a4Var) {
        this.C = a4Var;
        synchronized (this) {
            this.G |= 1;
        }
        f(yf.a.f52373d);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        if (i10 == 1) {
            jg.a4 a4Var = this.C;
            if (a4Var != null) {
                a4Var.U();
                return;
            }
            return;
        }
        if (i10 != 2) {
            return;
        }
        jg.a4 a4Var2 = this.C;
        if (a4Var2 != null) {
            a4Var2.T();
        }
    }

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

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

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