package zb;

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

/* loaded from: classes4.dex */
public class p0 extends o0 implements b.a {
    private static final n.i K = null;
    private static final SparseIntArray L = null;
    private final CpcFormatView H;
    private final View.OnClickListener I;
    private long J;

    public p0(androidx.databinding.e eVar, View view) {
        this(eVar, view, androidx.databinding.n.E(eVar, view, 7, K, L));
    }

    @Override // androidx.databinding.n
    public void B() {
        synchronized (this) {
            this.J = 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((cc.i) obj);
        return true;
    }

    public void U(cc.i iVar) {
        this.G = iVar;
        synchronized (this) {
            this.J |= 1;
        }
        f(ob.a.f31095d);
        super.J();
    }

    @Override // bc.b.a
    public final void a(int i10, View view) {
        cc.i iVar = this.G;
        if (iVar != null) {
            iVar.S();
        }
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.J;
            this.J = 0L;
        }
        if ((j10 & 2) != 0) {
            TextView textView = this.A;
            u7.g.g(textView, textView.getResources().getString(ob.l.f31296k2));
            TextView textView2 = this.B;
            u7.g.g(textView2, textView2.getResources().getString(ob.l.f31294k0));
            TextView textView3 = this.C;
            u7.g.g(textView3, textView3.getResources().getString(ob.l.F));
            TextView textView4 = this.D;
            u7.g.g(textView4, textView4.getResources().getString(ob.l.f31299l0));
            TextView textView5 = this.E;
            u7.g.g(textView5, textView5.getResources().getString(ob.l.f31304m0));
            u8.m.a(this.H, this.I);
        }
    }

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

    private p0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (TextView) objArr[3], (TextView) objArr[4], (TextView) objArr[5], (TextView) objArr[2], (TextView) objArr[6], (CpcDialogFragmentFullView) objArr[0]);
        this.J = -1L;
        this.A.setTag(null);
        this.B.setTag(null);
        this.C.setTag(null);
        this.D.setTag(null);
        this.E.setTag(null);
        this.F.setTag(null);
        CpcFormatView cpcFormatView = (CpcFormatView) objArr[1];
        this.H = cpcFormatView;
        cpcFormatView.setTag(null);
        P(view);
        this.I = new bc.b(this, 1);
        B();
    }
}
