mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-21 23:11:45 +02:00
The MainActivitySafIo helpers declared a MainActivity receiver although they only use Context members and the core backend. They now take a Context receiver, and the ones that reach the backend take it as an explicit first parameter, so a service can call them with its own backend. buildLibraryCoverCacheKey used neither and is now a plain function. Bodies are unchanged apart from passing the backend through to the helpers they call. Activity callers pass their own coreBackend, so the same instances reach the same code. The finalizer keeps using SafDownloadHandler.copyContentUriToTemp; switching it would add the MediaStore fallback and MIME-based extension, which is a behavior change.