mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-08-03 01:28:37 +02:00
fix(player): restore playback position reliably
This commit is contained in:
@@ -133,6 +133,8 @@ class _MainShellState extends ConsumerState<MainShell>
|
||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||
if (state == AppLifecycleState.resumed && _initialSafRepairComplete) {
|
||||
unawaited(_repairSafAccessIfNeeded());
|
||||
} else if (state == AppLifecycleState.paused) {
|
||||
unawaited(persistCurrentPlaybackSession());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user