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
|
@override
|
||||||
void didChangeAppLifecycleState(AppLifecycleState state) {
|
void didChangeAppLifecycleState(AppLifecycleState state) {
|
||||||
switch (state) {
|
switch (state) {
|
||||||
|
case AppLifecycleState.inactive:
|
||||||
case AppLifecycleState.paused:
|
case AppLifecycleState.paused:
|
||||||
|
case AppLifecycleState.detached:
|
||||||
_pauseVideoControllers();
|
_pauseVideoControllers();
|
||||||
break;
|
break;
|
||||||
case AppLifecycleState.resumed:
|
case AppLifecycleState.resumed:
|
||||||
availability.onResume();
|
availability.onResume();
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue