diff --git a/lib/widgets/viewer/entry_viewer_stack.dart b/lib/widgets/viewer/entry_viewer_stack.dart index a238444f6..f00f6da16 100644 --- a/lib/widgets/viewer/entry_viewer_stack.dart +++ b/lib/widgets/viewer/entry_viewer_stack.dart @@ -154,14 +154,14 @@ class _EntryViewerStackState extends State with SingleTickerPr @override void didChangeAppLifecycleState(AppLifecycleState state) { switch (state) { + case AppLifecycleState.inactive: case AppLifecycleState.paused: + case AppLifecycleState.detached: _pauseVideoControllers(); break; case AppLifecycleState.resumed: availability.onResume(); break; - default: - break; } }