diff --git a/core/src/main/java/info/nightscout/androidaps/utils/textValidator/ValidatingEditTextPreference.kt b/core/src/main/java/info/nightscout/androidaps/utils/textValidator/ValidatingEditTextPreference.kt index b7c244ec54..495b71eeac 100644 --- a/core/src/main/java/info/nightscout/androidaps/utils/textValidator/ValidatingEditTextPreference.kt +++ b/core/src/main/java/info/nightscout/androidaps/utils/textValidator/ValidatingEditTextPreference.kt @@ -16,7 +16,7 @@ class ValidatingEditTextPreference(ctx: Context, attrs: AttributeSet, defStyleAt setOnBindEditTextListener { editText -> validator = DefaultEditTextValidator(editText, validatorParameters, context) } - setOnPreferenceChangeListener { preference, newValue -> + setOnPreferenceChangeListener { _, _ -> validator?.testValidity(false) ?: true } }