build: fix changelog
This commit is contained in:
parent
8a8586968f
commit
a5ce8bf5ee
3 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue