Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

object changes not saved #9

Closed
duz17 opened this issue May 28, 2019 · 2 comments
Closed

object changes not saved #9

duz17 opened this issue May 28, 2019 · 2 comments

Comments

@duz17
Copy link

duz17 commented May 28, 2019

I use this library to save any type of object
in PreferenceFieldBinder you got this line of code:
override fun setValue(thisRef: PreferenceHolder, property: KProperty<*>, value: T) {
if (value == field) return

meaning that if I change object and try to save it again it not saved

@joseAugustoCR
Copy link

I have the same problem.

As a workaround, I set the object to null before applying the new value

@yooneskh
Copy link

yooneskh commented Mar 3, 2020

i had this problem too and @joseAugustoCR workaround worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants