code: private void setEnabledOnViewGroup(@NonNull final ViewGroup viewGroup, final boolean enabled) {
          viewGroup.setEnabled(enabled);
  
          for (int i = 0; i < viewGroup.getChildCount(); i++) {
              View child = viewGroup.getChildAt(i);
  
              if (child instanceof ViewGroup) {
                  setEnabledOnViewGroup((ViewGroup) child, enabled);
              } else {
                  child.setEnabled(enabled);
              }
          }
      }
docs: Adapts the enable state of all children of a specific view group.
  
  @param viewGroup
  The view group, whose children's enabled states should be adapted, as an instance of
  the class {@link ViewGroup}. The view group may not be null
  @param enabled
  True, if the children should be enabled, false otherwise