diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/notifications/GBProgressNotification.kt b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/notifications/GBProgressNotification.kt index df95bbd928..81e0c6e59e 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/notifications/GBProgressNotification.kt +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/util/notifications/GBProgressNotification.kt @@ -109,7 +109,9 @@ class GBProgressNotification( fun incrementTotalSize(inc: Long) { LOG.debug("incrementTotalSize id={}: {}+={}", notificationId, totalSize, inc) this.totalSize += inc - refresh(false) + if (visible) { + refresh(false) + } } fun setProgress(chunkProgress: Long, totalProgress: Long) {