package ec;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.ScrollView;
import androidx.databinding.n;

/* loaded from: classes4.dex */
public class f0 extends e0 {
    private static final n.i E;
    private static final SparseIntArray F;
    private final ScrollView C;
    private long D;

    static {
        n.i iVar = new n.i(2);
        E = iVar;
        iVar.a(0, new String[]{"weight_and_size_fragment_content"}, new int[]{1}, new int[]{dc.e0.f16055t});
        F = null;
    }

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

    private boolean U(g0 g0Var, int i10) {
        if (i10 != dc.a.f15951a) {
            return false;
        }
        synchronized (this) {
            this.D |= 1;
        }
        return true;
    }

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

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

    @Override // androidx.databinding.n
    public void O(androidx.lifecycle.u uVar) {
        super.O(uVar);
        this.A.O(uVar);
    }

    @Override // androidx.databinding.n
    public boolean Q(int i10, Object obj) {
        if (dc.a.f15952b != i10) {
            return false;
        }
        V((ca.canadapost.module.findrate.a) obj);
        return true;
    }

    public void V(ca.canadapost.module.findrate.a aVar) {
        this.B = aVar;
        synchronized (this) {
            this.D |= 2;
        }
        f(dc.a.f15952b);
        super.J();
    }

    @Override // androidx.databinding.n
    protected void n() {
        long j10;
        synchronized (this) {
            j10 = this.D;
            this.D = 0L;
        }
        ca.canadapost.module.findrate.a aVar = this.B;
        if ((j10 & 6) != 0) {
            this.A.U(aVar);
        }
        androidx.databinding.n.p(this.A);
    }

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

    private f0(androidx.databinding.e eVar, View view, Object[] objArr) {
        super(eVar, view, 1, (g0) objArr[1]);
        this.D = -1L;
        N(this.A);
        ScrollView scrollView = (ScrollView) objArr[0];
        this.C = scrollView;
        scrollView.setTag(null);
        P(view);
        B();
    }
}
