File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
app/src/main/java/fr/free/nrw/commons/upload Expand file tree Collapse file tree 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) {
217217 Timber .d ("Before execution!" );
218218 curNotification .setContentTitle (getString (R .string .upload_progress_notification_title_start , contribution .getDisplayTitle ()))
219219 .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 );
221222 notificationManager
222223 .notify (notificationTag , NOTIFICATION_UPLOAD_IN_PROGRESS , curNotification .build ());
223224
@@ -306,7 +307,8 @@ private void showFailedNotification(Contribution contribution) {
306307 curNotification .setTicker (getString (R .string .upload_failed_notification_title , contribution .getDisplayTitle ()))
307308 .setContentTitle (getString (R .string .upload_failed_notification_title , contribution .getDisplayTitle ()))
308309 .setContentText (getString (R .string .upload_failed_notification_subtitle ))
309- .setProgress (0 , 0 , false );
310+ .setProgress (0 , 0 , false )
311+ .setOngoing (false );
310312 notificationManager .notify (contribution .getLocalUri ().toString (), NOTIFICATION_UPLOAD_FAILED , curNotification .build ());
311313
312314 contribution .setState (Contribution .STATE_FAILED );
You can’t perform that action at this time.
0 commit comments