fixed video still playing in the background after leaving the app in some cases
This commit is contained in:
parent
0b2be7e3d4
commit
995e5bb28f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue