code: private void obtainFragment(@NonNull final TypedArray typedArray) {
          setFragment(typedArray.getString(R.styleable.NavigationPreference_android_fragment));
      }
docs: Obtains the fragment from a specific typed array.
  
  @param typedArray
  The typed array, the fragment should be obtained from, as an instance of the class
  {@link TypedArray}. The typed array may not be null