home: fix broken item refresh
This commit is contained in:
parent
d6a0b75618
commit
f84e3428f0
1 changed files with 5 additions and 5 deletions
|
@ -175,24 +175,24 @@ constructor(
|
||||||
override fun invalidateMusic(type: MusicType, instructions: UpdateInstructions) {
|
override fun invalidateMusic(type: MusicType, instructions: UpdateInstructions) {
|
||||||
when (type) {
|
when (type) {
|
||||||
MusicType.SONGS -> {
|
MusicType.SONGS -> {
|
||||||
_songList.value = homeGenerator.songs()
|
|
||||||
_songInstructions.put(instructions)
|
_songInstructions.put(instructions)
|
||||||
|
_songList.value = homeGenerator.songs()
|
||||||
}
|
}
|
||||||
MusicType.ALBUMS -> {
|
MusicType.ALBUMS -> {
|
||||||
_albumList.value = homeGenerator.albums()
|
|
||||||
_albumInstructions.put(instructions)
|
_albumInstructions.put(instructions)
|
||||||
|
_albumList.value = homeGenerator.albums()
|
||||||
}
|
}
|
||||||
MusicType.ARTISTS -> {
|
MusicType.ARTISTS -> {
|
||||||
_artistList.value = homeGenerator.artists()
|
|
||||||
_artistInstructions.put(instructions)
|
_artistInstructions.put(instructions)
|
||||||
|
_artistList.value = homeGenerator.artists()
|
||||||
}
|
}
|
||||||
MusicType.GENRES -> {
|
MusicType.GENRES -> {
|
||||||
_genreList.value = homeGenerator.genres()
|
|
||||||
_genreInstructions.put(instructions)
|
_genreInstructions.put(instructions)
|
||||||
|
_genreList.value = homeGenerator.genres()
|
||||||
}
|
}
|
||||||
MusicType.PLAYLISTS -> {
|
MusicType.PLAYLISTS -> {
|
||||||
_playlistList.value = homeGenerator.playlists()
|
|
||||||
_playlistInstructions.put(instructions)
|
_playlistInstructions.put(instructions)
|
||||||
|
_playlistList.value = homeGenerator.playlists()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue