Fixed ma but with Preferences that would cause the newValue not to be updated in Android.