Skip to content

Commit

Permalink
fix: bug with fetching random songs to play
Browse files Browse the repository at this point in the history
  • Loading branch information
phanan committed Jun 1, 2023
1 parent 8a49412 commit 1a762e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions lib/ui/screens/songs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,10 +228,7 @@ class _SongListHeaderState extends State<SongListHeader> {

Future<void> fetchSongsToShuffleAll() async {
setState(() => _fetchingSongsToShuffle = true);
final songs = await _songProvider.fetchInOrder(
sortField: widget.sortField,
order: widget.sortOrder,
);
final songs = await _songProvider.fetchRandom();
setState(() => _fetchingSongsToShuffle = false);
audioHandler.replaceQueue(songs, shuffle: true);
}
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 2.0.0+16
version: 2.0.2+19

environment:
sdk: ">=2.17.0-0 <3.0.0"
Expand Down

0 comments on commit 1a762e1

Please sign in to comment.