// Generated by view binder compiler. Do not edit!
package hanson.xyz.vpnhotspotmod.databinding;

import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.viewbinding.ViewBinding;
import com.google.android.material.materialswitch.MaterialSwitch;
import hanson.xyz.vpnhotspotmod.R;
import java.lang.NullPointerException;
import java.lang.Override;

public final class PreferenceWidgetMaterialSwitchBinding implements ViewBinding {
  @NonNull
  private final MaterialSwitch rootView;

  @NonNull
  public final MaterialSwitch switchWidget;

  private PreferenceWidgetMaterialSwitchBinding(@NonNull MaterialSwitch rootView,
      @NonNull MaterialSwitch switchWidget) {
    this.rootView = rootView;
    this.switchWidget = switchWidget;
  }

  @Override
  @NonNull
  public MaterialSwitch getRoot() {
    return rootView;
  }

  @NonNull
  public static PreferenceWidgetMaterialSwitchBinding inflate(@NonNull LayoutInflater inflater) {
    return inflate(inflater, null, false);
  }

  @NonNull
  public static PreferenceWidgetMaterialSwitchBinding inflate(@NonNull LayoutInflater inflater,
      @Nullable ViewGroup parent, boolean attachToParent) {
    View root = inflater.inflate(R.layout.preference_widget_material_switch, parent, false);
    if (attachToParent) {
      parent.addView(root);
    }
    return bind(root);
  }

  @NonNull
  public static PreferenceWidgetMaterialSwitchBinding bind(@NonNull View rootView) {
    if (rootView == null) {
      throw new NullPointerException("rootView");
    }

    MaterialSwitch switchWidget = (MaterialSwitch) rootView;

    return new PreferenceWidgetMaterialSwitchBinding((MaterialSwitch) rootView, switchWidget);
  }
}
