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