mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Three lifecycle bugs in GarminSupport's transferNotification: * addFileToDownloadList incremented totalSize unconditionally, so a directory listing arriving on connect posted a notification with the unlocalised "Unknown transfer" fallback title before any transfer started. * The start/finish pair gated on gbDevice.isBusy(), which other paths set and clear — start could be skipped while the matching finish ran anyway, or vice versa. * dispose() didn't finish the notification, leaving it pinned after a mid-sync disconnect. Gate the increments and the start/finish pair on the private isBusyFetching flag, and finish + clear the flag in dispose().