code: private boolean removePreferenceFragment() {
          if (!isSplitScreen() && isPreferenceFragmentShown() && !isNavigationHidden() &&
                  !isButtonBarShown()) {
              navigationFragment.selectNavigationPreference(-1, null);
              removePreferenceFragmentUnconditionally();
              selectedPreferenceFragment = null;
              selectedPreferenceFragmentArguments = null;
              return true;
          }
  
          return false;
      }
docs: Removes the currently shown preference fragment, if the split screen layout is not used and
  the navigation is not hidden.
  
  @return True, if a preference fragment has been removed, false otherwise