Don't need background sync for OpenTasks

Background sync handled by sync apps
pull/2589/head
Alex Baker 8 months ago
parent 3e79dd5190
commit 7ae77a81e1

@ -125,9 +125,7 @@ class WorkManagerImpl(
override fun updateBackgroundSync() {
throttle.run {
val enabled =
caldavDao.getAccounts(TYPE_GOOGLE_TASKS, TYPE_CALDAV, TYPE_TASKS, TYPE_ETEBASE).isNotEmpty() ||
openTaskDao.shouldSync()
val enabled = caldavDao.getAccounts(TYPE_GOOGLE_TASKS, TYPE_CALDAV, TYPE_TASKS, TYPE_ETEBASE).isNotEmpty()
if (enabled) {
Timber.d("Enabling background sync")
val builder = PeriodicWorkRequest.Builder(SyncWork::class.java, 1, TimeUnit.HOURS)

Loading…
Cancel
Save