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

save() method not saving datas on db in Android oreo. #93

Open
athulantonynp opened this issue Oct 31, 2017 · 2 comments
Open

save() method not saving datas on db in Android oreo. #93

athulantonynp opened this issue Oct 31, 2017 · 2 comments

Comments

@athulantonynp
Copy link

athulantonynp commented Oct 31, 2017

As per the new changes in Oreo, The library seems to be not working well. The save() method returns an exception at line 138 of Model.class.

Sprinkles.sInstance.mContext.getContentResolver().notifyChange(
Utils.getNotificationUri(Model.this.getClass()), null, true);

This might be because of the new changes in ContentProvider class on Android Oreo.
From the Android doc, it is clear that content provider must be declared if we deal with the local databases. A content provider class declaration need from the library in an urgent hotfix release. @fstephany @jdreesen @fstephany @vinc3m1 @danielohrlund @f2prateek @emilsjolander

@fstephany
Copy link
Contributor

Ouch. I've migrated all my projects to StorIO.

I guess you can submit a pull request with the content provider fix. I don't know if @emilsjolander is still using sprinkles but he might be OK to merge your PR or mark your fork as a more up-to-date version in the README.

@athulantonynp
Copy link
Author

@fstephany Working on it.

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

2 participants