mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 15:02:21 +02:00
DownloadService and BackgroundWorkService each built the same partial wake lock (30-minute timeout, 15-minute renew, not reference-counted), the same dataSync startForeground SDK branch and the same content PendingIntent to MainActivity. ForegroundWorkLock now holds the lock and the shared constants, and two small helpers cover the start branch and the intent. The renew strategies stay per service: DownloadService renews on its progress and maintenance calls once 15 minutes have passed, while BackgroundWorkService re-acquires from a main-thread Handler timer. Wake-lock tags, channel IDs, notification IDs, intent flags and request codes are unchanged, and the verification intent keeps its own request code and extras.