From: David A. Velasco Date: Fri, 14 Mar 2014 13:29:25 +0000 (+0100) Subject: Progress bar in notifications is hidden when download/upload finishes X-Git-Tag: oc-android-1.5.5~5^2~4^2~5 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/7ab8ee7d4a13aa31e5f6d014e6f53811f0fb872a?ds=sidebyside;hp=--cc Progress bar in notifications is hidden when download/upload finishes --- 7ab8ee7d4a13aa31e5f6d014e6f53811f0fb872a diff --git a/src/com/owncloud/android/files/services/FileDownloader.java b/src/com/owncloud/android/files/services/FileDownloader.java index 23b29c2d..80d55286 100644 --- a/src/com/owncloud/android/files/services/FileDownloader.java +++ b/src/com/owncloud/android/files/services/FileDownloader.java @@ -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() diff --git a/src/com/owncloud/android/files/services/FileUploader.java b/src/com/owncloud/android/files/services/FileUploader.java index 8a7ceda5..6cef9a1e 100644 --- a/src/com/owncloud/android/files/services/FileUploader.java +++ b/src/com/owncloud/android/files/services/FileUploader.java @@ -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;