Fix invalid condition
This commit is contained in:
parent
ba6f92e168
commit
599cf7626f
1
.gitignore
vendored
1
.gitignore
vendored
@ -32,7 +32,6 @@
|
||||
/build/
|
||||
|
||||
# Web related
|
||||
lib/generated_plugin_registrant.dart
|
||||
|
||||
# Symbolication related
|
||||
app.*.symbols
|
||||
|
@ -55,7 +55,7 @@ class _MusicPlayerState extends State<MusicPlayer> {
|
||||
|
||||
// Automatically choose next music if required
|
||||
if (currMusicPos >= _stack.length) {
|
||||
var list = _playFilteredMusics
|
||||
var list = (_playFilteredMusics && (_filteredList?.length ?? 0) > 1)
|
||||
? _filteredList ?? widget.musicsList
|
||||
: widget.musicsList;
|
||||
var nextId = rng.nextInt(list.length);
|
||||
|
Loading…
Reference in New Issue
Block a user