diff --git a/app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt b/app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt index 4d79bc88e8..cec7f9b74d 100644 --- a/app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt +++ b/app/src/main/java/fr/free/nrw/commons/upload/PendingUploadsFragment.kt @@ -116,6 +116,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?) { showAlertDialog( @@ -132,6 +133,9 @@ class PendingUploadsFragment : String.format(Locale.getDefault(), requireActivity().getString(R.string.no)), { ViewUtil.showShortToast(context, R.string.cancelling_upload) + + if(contributionsList.size == 1) + {CommonsApplication.isPaused = false} pendingUploadsPresenter.deleteUpload( contribution, this.requireContext().applicationContext,