mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-10-02 22:26:52 +02:00
fix(startup): keep shared backend alive across activity recreation
This commit is contained in:
1 parent
fb08110797
commit
cda9868a1f
2 files changed
+4
-6
No files matched your search
@@ -946,11 +946,9 @@ class MainActivity: FlutterFragmentActivity() {
|
||||
} catch (_: Exception) {}
|
||||
}
|
||||
libraryStorageReceiver = null
|
||||
try {
|
||||
coreBackend.cleanupExtensions()
|
||||
} catch (e: Exception) {
|
||||
android.util.Log.w("SpotiFLAC", "Failed to cleanup extensions on destroy: ${e.message}")
|
||||
}
|
||||
// The backend belongs to the process/shared Flutter engine and download
|
||||
// service. Activity recreation must not shut it down (or wait for its
|
||||
// active scans/downloads on the UI thread).
|
||||
stopDownloadProgressStream()
|
||||
stopLibraryScanProgressStream()
|
||||
closeAllSafPlaybackLeases()
|
||||
|
||||
Reference in new issue
Block a user