I use PreferenceManager.setDefaultValues(context,R.xml.preferences,false)
to set default values for parameters in my application and I noticed that if I add a new preference then my PreferenceFragment
will not show the default value for it. even if it is installed in preferences.xml ..
Is this because I am specifying readAgain as false?
I know that I can just try and see, but I just wanted to be sure that readAgain is for this purpose, that is, re-read the default values so as not to reset user settings, but to set new properties' default values. If this is the purpose of the readAgain flag, can you give me a reason not to always set readAgain to true, given that user settings are not reset?
source share