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 x1 extends w1 implements a.InterfaceC0282a {
    private static final n.i F = null;
    private static final SparseIntArray G = null;
    private final CpcFragmentContainerView B;
    private final Button C;
    private final View.OnClickListener D;
    private long E;

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

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.E = 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.f52378i != i10) {
            return false;
        }
        U((jg.r1) obj);
        return true;
    }

    @Override // zf.w1
    public void U(jg.r1 r1Var) {
        this.A = r1Var;
        synchronized (this) {
            this.E |= 1;
        }
        f(yf.a.f52378i);
        super.J();
    }

    @Override // cg.a.InterfaceC0282a
    public final void a(int i10, View view) {
        jg.r1 r1Var = this.A;
        if (r1Var != null) {
            r1Var.V();
        }
    }

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

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

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