This commit is contained in:
GaoYizhuo2000 2025-09-12 02:12:08 +05:30 committed by GitHub
commit 1e908c0a1a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,6 +117,7 @@ class PendingUploadsFragment :
/**
* Cancels a specific upload after getting a confirmation from the user using Dialog.
* And if the deleted upload is the last one, will set app off paused, allowing a fresh new start for future uploads.
*/
override fun deleteUpload(contribution: Contribution?) {
val activity = requireActivity()
@ -128,6 +129,8 @@ class PendingUploadsFragment :
String.format(locale, activity.getString(R.string.yes)),
String.format(locale, activity.getString(R.string.no)),
{
if(contributionsList.size== 1)
{CommonsApplication.isPaused = false}
ViewUtil.showShortToast(context, R.string.cancelling_upload)
pendingUploadsPresenter.deleteUpload(
contribution, requireContext().applicationContext,