A cross platform Audiobookshelf client for Android and iOS
Dart
Don't auto-resume after interruption if Assistant already resumed playback
Barnabas4f3cfd34f222
diff --git a/lib/services/audio_player_service.dart b/lib/services/audio_player_service.dartindex a5056b03..c4a86c89 100644--- a/lib/services/audio_player_service.dart+++ b/lib/services/audio_player_service.dart@@ -1395,6 +1395,8 @@ class AudioPlayerService extends ChangeNotifier {// Re-check: another event (like becoming-noisy) might have fired// during the delay.if (_noisyPause) return;+ // Don't double-resume: Assistant may already have called play().+ if (service._player?.playing == true) return;// If we were on BT when interrupted, check if BT is still connected.// Some car head units never send AUDIO_BECOMING_NOISY on disconnect,// so _noisyPause alone is not enough.