question: public PreferenceScreen inflateFromResource ( Context context , int resId , PreferenceScreen rootPreferences ) { setNoCommit ( true ) ; final PreferenceInflater inflater = new PreferenceInflater ( context , this ) ; rootPreferences = ( PreferenceScreen ) inflater . inflate ( resId , rootPreferences , true ) ; rootPreferences . onAttachedToHierarchy ( this ) ; setNoCommit ( false ) ; return rootPreferences ; }
target:  Inflates a preference hierarchy from XML. If a preference hierarchy is given, the new preference hierarchies will be merged in.