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
SyncAdapter support #52
Comments
To clarify this is already possible its just not quite as integrated as I would like. I can trigger a sync by using the following code in the onSave callback.
|
I'm not 100% certain how the last parameter to |
That is correct. Its essentially doing the |
Ok, that means changing the last parameter to true won't do much as the notification uri is not coupled with any authority. Using the current code you could either always call Implementing the change in the library could however also be nice. I don't really have any good suggestions on any api though because i use |
Let me work up a pull request with an updated I think the only change required in the library itself is the updated It will then be completely up to the user of the library to implement the SyncAdapter to their liking within their own application. |
I think this is a good idea, looking forward to a pull request! |
Argh sorry i forgot to put the correct issue number in the pull request... Duplicate #54 |
I would love to be able to hook into the callback in
Model.save()
in order to tell the underlying content provider to start a sync adapter. For example the change might look like...The extra
true
param on the end would allow for using a SyncAdapter alongside Sprinkles.I would be happy to implement this I'm just curious if @emilsjolander has any input on this.
Thanks
The text was updated successfully, but these errors were encountered: