build: fix changelog

This commit is contained in:
Alexander Capehart 2023-05-22 16:31:04 -06:00
parent 8a8586968f
commit a5ce8bf5ee
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
3 changed files with 5 additions and 5 deletions

View file

@ -3,7 +3,7 @@
## 3.1.0
#### What's New
- **Playlists.** The long-awaited feature has arrived, with more functionality coming soon.
- Added playlist functionality
#### What's Improved
- Sorting now handles numbers of arbitrary length

View file

@ -59,10 +59,10 @@ constructor(
private val musicSettings: MusicSettings,
private val playbackSettings: PlaybackSettings
) : ViewModel(), MusicRepository.UpdateListener {
private var currentSongJob: Job? = null
// --- SONG ---
private var currentSongJob: Job? = null
private val _currentSong = MutableStateFlow<Song?>(null)
/** The current [Song] to display. Null if there is nothing to show. */
val currentSong: StateFlow<Song?>
@ -279,7 +279,7 @@ constructor(
*
* @param uid The [Music.UID] of the [Playlist] to update [currentPlaylist] to. Must be valid.
*/
fun setPlaylistUid(uid: Music.UID) {
fun setPlaylist(uid: Music.UID) {
logD("Opening Playlist [uid: $uid]")
_currentPlaylist.value =
musicRepository.userLibrary?.findPlaylist(uid)?.also(::refreshPlaylistList)

View file

@ -122,7 +122,7 @@ class PlaylistDetailFragment :
// --- VIEWMODEL SETUP ---
// DetailViewModel handles most initialization from the navigation argument.
detailModel.setPlaylistUid(args.playlistUid)
detailModel.setPlaylist(args.playlistUid)
collectImmediately(detailModel.currentPlaylist, ::updatePlaylist)
collectImmediately(detailModel.playlistList, ::updateList)
collectImmediately(detailModel.editedPlaylist, ::updateEditedPlaylist)