Compare commits

...

6 commits

Author SHA1 Message Date
GaoYizhuo2000
404145ad76
Merge 045cfa24b3 into 954a7aee91 2025-03-19 02:50:54 -03:00
Nicolas Raoul
045cfa24b3
Merge branch 'main' into 1-issue#5829 2025-01-11 08:47:44 +09:00
Nicolas Raoul
02a2bdc41b
Merge branch 'main' into 1-issue#5829 2025-01-08 22:30:35 +09:00
Nicolas Raoul
7631dfb57b
Merge branch 'main' into 1-issue#5829 2024-12-13 23:18:19 +09:00
Nicolas Raoul
7e1d3b37bb
Merge branch 'main' into 1-issue#5829 2024-10-19 22:36:09 +09:00
yz.gao
17a035230c fixed issue #5829 2024-10-19 01:21:55 +11:00

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,