mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Implemented flag for workers
This commit is contained in:
parent
7255c994a6
commit
368d3bbff0
1 changed files with 1 additions and 2 deletions
|
|
@ -107,7 +107,7 @@ class UploadClient @Inject constructor(
|
|||
return Observable.just(StashUploadResult(StashUploadState.CANCELLED, null, "Upload cancelled"))
|
||||
}
|
||||
contributionDao.getContribution(contribution.pageId).state == Contribution.STATE_PAUSED -> {
|
||||
Timber.tag("PRINT").d("Upload stash paused %s", contribution.pageId)
|
||||
Timber.d("Upload stash paused %s", contribution.pageId)
|
||||
Observable.just(StashUploadResult(StashUploadState.PAUSED, null, null))
|
||||
}
|
||||
failures.get() -> {
|
||||
|
|
@ -272,7 +272,6 @@ private fun canProcess(
|
|||
): Boolean {
|
||||
// As long as the contribution hasn't been paused and there are no errors,
|
||||
// we can process the current chunk.
|
||||
Timber.tag("PRINT").e("oyee" + contributionDao.getContribution(contribution.pageId).state)
|
||||
return !(contributionDao.getContribution(contribution.pageId).state == Contribution.STATE_PAUSED
|
||||
|| failures.get())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue