mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Bug fixes
This commit is contained in:
parent
0b757741fd
commit
9cbf9885a7
1 changed files with 1 additions and 2 deletions
|
|
@ -154,7 +154,7 @@ class PendingUploadsFragment : CommonsDaggerSupportFragment(), PendingUploadsCon
|
||||||
val last = sortedContributionsList.last()
|
val last = sortedContributionsList.last()
|
||||||
for (i in sortedContributionsList.indices) {
|
for (i in sortedContributionsList.indices) {
|
||||||
val current = sortedContributionsList[i]
|
val current = sortedContributionsList[i]
|
||||||
if (current.transferred == 0L && (current.dateModifiedInMillis() / 100) > (last.dateModifiedInMillis() / 100)){
|
if (current.transferred == 0L && current.state != Contribution.STATE_QUEUED && (current.dateModifiedInMillis() / 100) > (last.dateModifiedInMillis() / 100)){
|
||||||
listOfRemoved.add(current)
|
listOfRemoved.add(current)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -189,7 +189,6 @@ class PendingUploadsFragment : CommonsDaggerSupportFragment(), PendingUploadsCon
|
||||||
{
|
{
|
||||||
ViewUtil.showShortToast(context, R.string.cancelling_upload)
|
ViewUtil.showShortToast(context, R.string.cancelling_upload)
|
||||||
pendingUploadsPresenter.deleteUpload(contribution, this.requireContext().applicationContext)
|
pendingUploadsPresenter.deleteUpload(contribution, this.requireContext().applicationContext)
|
||||||
CommonsApplication.cancelledUploads.add(contribution!!.pageId)
|
|
||||||
resetProgressBar()
|
resetProgressBar()
|
||||||
},
|
},
|
||||||
{}
|
{}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue