preferencebinder
preferencebinder copied to clipboard
bindTo type "INPUT"
What about a bindType=INPUT that behaves like TEXT but saves the user changes back to the preference?
Good idea :thumbsup:
Since the text listener can apply to TextView (TextView#addTextChangedListener) I will probably just add this behaviour to the existing TEXT type. I can't imagine a situation where you would want to automatically load preference value changes but not also save them when the user changes it (the CHECKED type does this by default for the same reason).
Eveb better :)
Denley Bihari [email protected] schrieb am Di., 18.08.2015, 6:19:
Good idea [image: :thumbsup:]
Since the text listener can apply to TextView ( TextView#addTextChangedListener http://developer.android.com/reference/android/widget/TextView.html#addTextChangedListener(android.text.TextWatcher)) I might actually consider just adding this behaviour to the existing TEXT type so that it's the default. I can't imagine a situation where you would want to automatically load preference value changes but not also save them when the user changes it.
— Reply to this email directly or view it on GitHub https://github.com/denley/preferencebinder/issues/33#issuecomment-131997236 .