File tree 1 file changed +4
-2
lines changed
app/src/main/java/fr/free/nrw/commons/upload
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,8 @@ private void uploadContribution(Contribution contribution) {
217
217
Timber .d ("Before execution!" );
218
218
curNotification .setContentTitle (getString (R .string .upload_progress_notification_title_start , contribution .getDisplayTitle ()))
219
219
.setContentText (getResources ().getQuantityString (R .plurals .uploads_pending_notification_indicator , toUpload , toUpload ))
220
- .setTicker (getString (R .string .upload_progress_notification_title_in_progress , contribution .getDisplayTitle ()));
220
+ .setTicker (getString (R .string .upload_progress_notification_title_in_progress , contribution .getDisplayTitle ()))
221
+ .setOngoing (true );
221
222
notificationManager
222
223
.notify (notificationTag , NOTIFICATION_UPLOAD_IN_PROGRESS , curNotification .build ());
223
224
@@ -306,7 +307,8 @@ private void showFailedNotification(Contribution contribution) {
306
307
curNotification .setTicker (getString (R .string .upload_failed_notification_title , contribution .getDisplayTitle ()))
307
308
.setContentTitle (getString (R .string .upload_failed_notification_title , contribution .getDisplayTitle ()))
308
309
.setContentText (getString (R .string .upload_failed_notification_subtitle ))
309
- .setProgress (0 , 0 , false );
310
+ .setProgress (0 , 0 , false )
311
+ .setOngoing (false );
310
312
notificationManager .notify (contribution .getLocalUri ().toString (), NOTIFICATION_UPLOAD_FAILED , curNotification .build ());
311
313
312
314
contribution .setState (Contribution .STATE_FAILED );
You can’t perform that action at this time.
0 commit comments