code: private void initializeFullscreenPreference() {
          Preference fullscreenPreference =
                  findPreference(getString(R.string.fullscreen_preference_key));
          fullscreenPreference.setOnPreferenceChangeListener(createThemeChangeListener());
      }
docs: Initializes the preference, which allows to specfify, whether dialogs should be shown
  fullscreen, or not.