Code refactor
This commit is contained in:
parent
332c2dc69b
commit
8eb7859f30
6 changed files with 104 additions and 74 deletions
|
@ -104,7 +104,7 @@ class DetailListFragment : AbsMainActivityFragment(R.layout.fragment_playlist_de
|
|||
adapter = songAdapter
|
||||
layoutManager = linearLayoutManager()
|
||||
}
|
||||
repository.historySong().observe(viewLifecycleOwner, Observer {
|
||||
repository.observableHistorySongs().observe(viewLifecycleOwner, Observer {
|
||||
val songs = it.map { historyEntity -> historyEntity.toSong() }
|
||||
songAdapter.swapDataSet(songs)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue