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.mic.MicFragment;
import com.seewo.factoryaging.mic.view.MicLedBarView;
import com.seewo.factoryaging.s0.g;

/* JADX INFO: compiled from: FragmentMicBindingImpl.java */
/* JADX INFO: loaded from: classes.dex */
public class d extends c {
    private static final ViewDataBinding.d A = null;
    private static final SparseIntArray B = null;
    private a y;
    private long z;

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

        public a a(MicFragment micFragment) {
            this.b = micFragment;
            if (micFragment == null) {
                return null;
            }
            return this;
        }

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

    public d(e eVar, View view) {
        this(eVar, view, ViewDataBinding.r(eVar, view, 4, A, B));
    }

    public void A() {
        synchronized (this) {
            this.z = 8L;
        }
        u();
    }

    @Override // androidx.databinding.ViewDataBinding
    protected void h() {
        long j2;
        synchronized (this) {
            j2 = this.z;
            this.z = 0L;
        }
        a aVarA = null;
        boolean z = this.v;
        MicFragment micFragment = this.x;
        String str = this.w;
        long j3 = 9 & j2;
        boolean z2 = j3 != 0 ? !z : false;
        long j4 = 10 & j2;
        if (j4 != 0 && micFragment != null) {
            a aVar = this.y;
            if (aVar == null) {
                aVar = new a();
                this.y = aVar;
            }
            aVarA = aVar.a(micFragment);
        }
        long j5 = j2 & 12;
        if (j3 != 0) {
            g.c(this.s, z);
            g.b(this.t, z);
            g.c(this.u, z2);
        }
        if (j4 != 0) {
            this.t.setOnClickListener(aVarA);
        }
        if (j5 != 0) {
            androidx.databinding.i.a.b(this.u, str);
        }
    }

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

    @Override // com.seewo.factoryaging.x0.c
    public void x(MicFragment micFragment) {
        this.x = micFragment;
        synchronized (this) {
            this.z |= 2;
        }
        a(1);
        super.u();
    }

    @Override // com.seewo.factoryaging.x0.c
    public void y(boolean z) {
        this.v = z;
        synchronized (this) {
            this.z |= 1;
        }
        a(3);
        super.u();
    }

    @Override // com.seewo.factoryaging.x0.c
    public void z(String str) {
        this.w = str;
        synchronized (this) {
            this.z |= 4;
        }
        a(5);
        super.u();
    }

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