Push changes after updating google task lists

pull/2368/head
Alex Baker 12 months ago
parent 07c7297bc8
commit b977f01402

@ -109,7 +109,6 @@ class GoogleTaskSynchronizer @Inject constructor(
return
}
val gtasksInvoker = invokers.getGtasksInvoker(account.username!!)
pushLocalChanges(account, gtasksInvoker)
val gtaskLists: MutableList<TaskList> = ArrayList()
var nextPageToken: String? = null
var eTag: String? = null
@ -130,6 +129,7 @@ class GoogleTaskSynchronizer @Inject constructor(
preferences.setString(R.string.p_default_list, null)
}
}
pushLocalChanges(account, gtasksInvoker)
for (list in googleTaskListDao.getByRemoteId(gtaskLists.map { it.id })) {
if (isNullOrEmpty(list.uuid)) {
firebase.reportException(RuntimeException("Empty remote id"))

Loading…
Cancel
Save