fixed video still playing in the background after leaving the app in some cases

This commit is contained in:
Thibault Deckers 2021-06-17 16:57:15 +09:00
parent 0b2be7e3d4
commit 995e5bb28f

View file

@ -154,14 +154,14 @@ class _EntryViewerStackState extends State<EntryViewerStack> 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;
}
}