mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 切换pip导致弹幕控制器空异常
This commit is contained in:
@@ -95,7 +95,7 @@ class _PlDanmakuState extends State<PlDanmaku> {
|
|||||||
List<DanmakuElem>? currentDanmakuList =
|
List<DanmakuElem>? currentDanmakuList =
|
||||||
_plDanmakuController.getCurrentDanmaku(currentPosition);
|
_plDanmakuController.getCurrentDanmaku(currentPosition);
|
||||||
|
|
||||||
if (currentDanmakuList != null) {
|
if (currentDanmakuList != null && _controller != null) {
|
||||||
Color? defaultColor = playerController.blockTypes.contains(6)
|
Color? defaultColor = playerController.blockTypes.contains(6)
|
||||||
? DmUtils.decimalToColor(16777215)
|
? DmUtils.decimalToColor(16777215)
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
Reference in New Issue
Block a user