code: private void obtainDisableDependantsState(@NonNull final TypedArray typedArray) {
          boolean defaultValue = getContext().getResources()
                  .getBoolean(R.bool.two_state_preference_default_disable_dependents_state);
          setDisableDependentsState(typedArray
                  .getBoolean(R.styleable.AbstractTwoStatePreference_android_disableDependentsState,
                          defaultValue));
      }
docs: Obtains the state, when dependent preferences should be disabled, from a specific typed
  array.
  
  @param typedArray
  The typed array, the state should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null