Extended EditTextPreference to handle int preferences