Closed tylerbwong closed 1 year ago
It is setup in Dagger, so it is a compile time dependency. Looks like it will need to be broken out it out into a runtime component.
@LandonPatmore That's a good point. Currently all work requests are created and managed by Hilt's SingletonComponent
object graph so we will need to break it out into its own component that we can manage/recreate when needed.
After doing a little research it seems like we'll be able to cancel existing unique work enqueued by WorkManager
. So this feature will just be a matter of saving the sync interval to disk, canceling the old WorkRequest
and then enqueuing a new one with the new sync interval.
However, bookmark background sync is currently disabled due to a bug 😞.
Closing due to #126 for the time being.
Currently the sync interval is every 8 hours for offline bookmark syncing. It would be nice if this were configurable from settings.