Progress bar in notifications is hidden when download/upload finishes
authorDavid A. Velasco <dvelasco@solidgear.es>
Fri, 14 Mar 2014 13:29:25 +0000 (14:29 +0100)
committerDavid A. Velasco <dvelasco@solidgear.es>
Fri, 14 Mar 2014 13:29:25 +0000 (14:29 +0100)
src/com/owncloud/android/files/services/FileDownloader.java
src/com/owncloud/android/files/services/FileUploader.java

index 23b29c2..80d5528 100644 (file)
@@ -465,7 +465,8 @@ public class FileDownloader extends Service implements OnDatatransferProgressLis
                 .setTicker(getString(tickerId))
                 .setContentTitle(getString(tickerId))
                 .setAutoCancel(true)
-                .setOngoing(false);
+                .setOngoing(false)
+                .setProgress(0, 0, false);
             boolean needsToUpdateCredentials = (downloadResult.getCode() == ResultCode.UNAUTHORIZED ||
                                                 // (downloadResult.isTemporalRedirection() && downloadResult.isIdPRedirection()
                                                   (downloadResult.isIdPRedirection()
index 8a7ceda..6cef9a1 100644 (file)
@@ -731,7 +731,10 @@ public class FileUploader extends Service implements OnDatatransferProgressListe
         } else if (uploadResult.isSuccess()) {
             // / success -> silent update of progress notification to success
             // message
-            mNotificationBuilder.setOngoing(false).setAutoCancel(true);
+            mNotificationBuilder
+                .setOngoing(false)
+                .setAutoCancel(true)
+                .setProgress(0, 0, false);
             
             /// includes a pending intent in the notification showing the details view of the file
             Intent showDetailsIntent = null;