package zb;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.databinding.n;
import bc.b;
import ca.canadapost.core.common.ui.CpcFragmentContainerFullView;

/* loaded from: classes4.dex */
public class z extends y implements b.a {
    private static final n.i H = null;
    private static final SparseIntArray I;
    private final CpcFragmentContainerFullView E;
    private final View.OnClickListener F;
    private long G;

    static {
        SparseIntArray sparseIntArray = new SparseIntArray();
        I = sparseIntArray;
        sparseIntArray.put(ob.i.f31177o0, 2);
        sparseIntArray.put(ob.i.Q0, 3);
    }

    public z(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 4, 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 (ob.a.f31095d != i10) {
            return false;
        }
        U((ca.canadapost.module.epostprofile.account.qrcode.a) obj);
        return true;
    }

    @Override // zb.y
    public void U(ca.canadapost.module.epostprofile.account.qrcode.a aVar) {
        this.D = aVar;
        synchronized (this) {
            this.G |= 1;
        }
        f(ob.a.f31095d);
        super.J();
    }

    @Override // bc.b.a
    public final void a(int i10, View view) {
        ca.canadapost.module.epostprofile.account.qrcode.a aVar = this.D;
        if (aVar != null) {
            aVar.r0();
        }
    }

    @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);
        }
    }

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

    private z(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (Button) objArr[1], (ImageView) objArr[2], (TextView) objArr[3]);
        this.G = -1L;
        this.A.setTag(null);
        CpcFragmentContainerFullView cpcFragmentContainerFullView = (CpcFragmentContainerFullView) objArr[0];
        this.E = cpcFragmentContainerFullView;
        cpcFragmentContainerFullView.setTag(null);
        P(view);
        this.F = new bc.b(this, 1);
        B();
    }
}
