preferencebinder icon indicating copy to clipboard operation
preferencebinder copied to clipboard

bindTo type "INPUT"

Open mlostekk opened this issue 9 years ago • 2 comments

What about a bindType=INPUT that behaves like TEXT but saves the user changes back to the preference?

mlostekk avatar Aug 17 '15 14:08 mlostekk

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).

denley avatar Aug 17 '15 23:08 denley

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 .

mlostekk avatar Aug 18 '15 02:08 mlostekk