fix: List 越界

This commit is contained in:
guozhigq
2024-02-03 01:13:36 +08:00
parent 1014c26d29
commit 230dd81342

View File

@ -147,8 +147,8 @@ class VideoPlayerServiceHandler extends BaseAudioHandler with SeekHandler {
processingState: AudioProcessingState.idle,
playing: false,
));
_item.removeLast();
if (_item.isNotEmpty) {
_item.removeLast();
setMediaItem(_item.last);
}
if (_item.isEmpty) {