/**
  * Sets the root of the preference hierarchy that this fragment is showing.
  *
  * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy.
  */
 public void setPreferenceScreen(PreferenceScreen preferenceScreen) {
   if (mPreferenceManager.setPreferences(preferenceScreen) && preferenceScreen != null) {
     onUnbindPreferences();
     mHavePrefs = true;
     if (mInitDone) {
       postBindPreferences();
     }
   }
 }
 /**
  * Sets the root of the preference hierarchy that this fragment is showing.
  *
  * @param preferenceScreen The root {@link PreferenceScreen} of the preference hierarchy.
  */
 public void setPreferenceScreen(PreferenceScreen preferenceScreen) {
   if (mPreferenceManager.setPreferences(preferenceScreen) && preferenceScreen != null) {
     mHavePrefs = true;
     if (mInitDone) {
       postBindPreferences();
     }
   }
   CharSequence title = preferenceScreen.getTitle();
   // Set the title of the activity
   if (title != null) {
     getActivity().setTitle(title);
   }
 }