I want to have an EditTextPreference that will disable the OK button if there is no text in the EditText field. I created a custom EditTextPreference class and I am able to get
need change the old EditTextPreference to the new ValidatedEditTextPreference in preference.xml.
I did the following:
Old code:
New code: