package com.seewo.factoryaging.x0;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.TextView;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.e;
import com.seewo.factoryaging.camera.view.CameraSurfaceView;
import com.seewo.factoryaging.r0.j;
import com.seewo.factoryaging.s0.g;

/* JADX INFO: compiled from: FragmentCameraBindingImpl.java */
/* JADX INFO: loaded from: classes.dex */
public class b extends com.seewo.factoryaging.x0.a {
    private static final ViewDataBinding.d D = null;
    private static final SparseIntArray E = null;
    private ViewOnClickListenerC0014b A;
    private a B;
    private long C;

    /* JADX INFO: compiled from: FragmentCameraBindingImpl.java */
    public static class a implements View.OnClickListener {
        private j b;

        public a a(j jVar) {
            this.b = jVar;
            if (jVar == null) {
                return null;
            }
            return this;
        }

        @Override // android.view.View.OnClickListener
        public void onClick(View view) {
            this.b.K1(view);
        }
    }

    /* JADX INFO: renamed from: com.seewo.factoryaging.x0.b$b, reason: collision with other inner class name */
    /* JADX INFO: compiled from: FragmentCameraBindingImpl.java */
    public static class ViewOnClickListenerC0014b implements View.OnClickListener {
        private j b;

        public ViewOnClickListenerC0014b a(j jVar) {
            this.b = jVar;
            if (jVar == null) {
                return null;
            }
            return this;
        }

        @Override // android.view.View.OnClickListener
        public void onClick(View view) {
            this.b.L1(view);
        }
    }

    public b(e eVar, View view) {
        this(eVar, view, ViewDataBinding.r(eVar, view, 5, D, E));
    }

    @Override // com.seewo.factoryaging.x0.a
    public void A(boolean z) {
        this.w = z;
        synchronized (this) {
            this.C |= 4;
        }
        a(4);
        super.u();
    }

    @Override // com.seewo.factoryaging.x0.a
    public void B(String str) {
        this.y = str;
        synchronized (this) {
            this.C |= 2;
        }
        a(5);
        super.u();
    }

    public void C() {
        synchronized (this) {
            this.C = 16L;
        }
        u();
    }

    @Override // androidx.databinding.ViewDataBinding
    protected void h() {
        long j2;
        a aVarA;
        synchronized (this) {
            j2 = this.C;
            this.C = 0L;
        }
        j jVar = this.z;
        String str = this.y;
        boolean z = this.w;
        boolean z2 = this.x;
        long j3 = 17 & j2;
        ViewOnClickListenerC0014b viewOnClickListenerC0014bA = null;
        if (j3 == 0 || jVar == null) {
            aVarA = null;
        } else {
            ViewOnClickListenerC0014b viewOnClickListenerC0014b = this.A;
            if (viewOnClickListenerC0014b == null) {
                viewOnClickListenerC0014b = new ViewOnClickListenerC0014b();
                this.A = viewOnClickListenerC0014b;
            }
            viewOnClickListenerC0014bA = viewOnClickListenerC0014b.a(jVar);
            a aVar = this.B;
            if (aVar == null) {
                aVar = new a();
                this.B = aVar;
            }
            aVarA = aVar.a(jVar);
        }
        long j4 = 18 & j2;
        long j5 = 20 & j2;
        boolean z3 = j5 != 0 ? !z : false;
        long j6 = j2 & 24;
        if (j3 != 0) {
            this.r.setOnClickListener(viewOnClickListenerC0014bA);
            this.s.setOnClickListener(aVarA);
        }
        if (j5 != 0) {
            g.b(this.r, z);
            g.c(this.t, z);
            g.c(this.v, z3);
        }
        if (j6 != 0) {
            g.a(this.s, z2);
        }
        if (j4 != 0) {
            androidx.databinding.i.a.b(this.v, str);
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean o() {
        synchronized (this) {
            return this.C != 0;
        }
    }

    @Override // com.seewo.factoryaging.x0.a
    public void y(j jVar) {
        this.z = jVar;
        synchronized (this) {
            this.C |= 1;
        }
        a(1);
        super.u();
    }

    @Override // com.seewo.factoryaging.x0.a
    public void z(boolean z) {
        this.x = z;
        synchronized (this) {
            this.C |= 8;
        }
        a(2);
        super.u();
    }

    private b(e eVar, View view, Object[] objArr) {
        super(eVar, view, 0, (Button) objArr[3], (Button) objArr[4], (CameraSurfaceView) objArr[2], (FrameLayout) objArr[0], (TextView) objArr[1]);
        this.C = -1L;
        this.r.setTag(null);
        this.s.setTag(null);
        this.t.setTag(null);
        this.u.setTag(null);
        this.v.setTag(null);
        v(view);
        C();
    }
}
