Closed jemshit closed 9 years ago
This is not related to the library. That's how it works on the original framework. Please read the documentation: http://developer.android.com/reference/android/preference/Preference.html#setOnPreferenceChangeListener(android.preference.Preference.OnPreferenceChangeListener) http://developer.android.com/reference/android/preference/Preference.OnPreferenceChangeListener.html
When are inside the "...", the value is still the previous one, as you can decide if you allow to really change the value (which is what the "return true" does - confirm the change). If you wish to check the new value, just check it out (it's even called "newValue").
Thanks :+1:
I'm getting wrong value when Clicked on switchpreference, when i switch on , it returns "false", when i switch off it returns "true". But if i check its values before clicking, it returns right value