feat: add episode action setting

close #1351
This commit is contained in:
edde746
2026-06-18 11:16:38 +02:00
parent 075e4aeb32
commit 94f2daa22e
38 changed files with 317 additions and 75 deletions
+14
View File
@@ -87,6 +87,20 @@ void main() {
});
});
group('SettingsService episode action', () {
test('defaults to play and resets to play', () async {
final settings = await SettingsService.getInstance();
expect(settings.read(SettingsService.episodeAction), EpisodeAction.play);
await settings.write(SettingsService.episodeAction, EpisodeAction.details);
expect(settings.read(SettingsService.episodeAction), EpisodeAction.details);
await settings.resetAllSettings();
expect(settings.read(SettingsService.episodeAction), EpisodeAction.play);
});
});
group('SettingsService platform gates', () {
test('audio passthrough stays available on desktop but not Apple TV', () {
expect(PlatformDetector.supportsAudioPassthrough(), isTrue);