From 4fb9bf66986d7cfa071a708bc2df9351b5aa1104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Rebelo?= Date: Tue, 12 May 2026 21:53:28 +0100 Subject: [PATCH] Garmin: Fix unknown transfer notification --- .../gadgetbridge/util/notifications/GBProgressNotification.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) {