mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-15 22:56:15 +08:00
mod: 为全屏和离开添加mounted限制
This commit is contained in:
@@ -73,7 +73,11 @@ class _HeaderControlState extends State<HeaderControl> {
|
||||
.videoDetailCtr!.plPlayerController.isFullScreen
|
||||
.listen((bool status) {
|
||||
isFullScreen = status;
|
||||
setState(() {});
|
||||
|
||||
/// TODO setState() called after dispose()
|
||||
if (mounted) {
|
||||
setState(() {});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user