mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-11-05 01:03:57 +01:00
fixed issue #5829
This commit is contained in:
parent
c7065e103b
commit
17a035230c
1 changed files with 3 additions and 0 deletions
|
|
@ -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(
|
||||
|
|
@ -131,6 +132,8 @@ class PendingUploadsFragment :
|
|||
String.format(Locale.getDefault(), requireActivity().getString(R.string.yes)),
|
||||
String.format(Locale.getDefault(), requireActivity().getString(R.string.no)),
|
||||
{
|
||||
if(contributionsList.size== 1)
|
||||
{CommonsApplication.isPaused = false}
|
||||
ViewUtil.showShortToast(context, R.string.cancelling_upload)
|
||||
pendingUploadsPresenter.deleteUpload(
|
||||
contribution,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue