Skip to content
Snippets Groups Projects
Commit 61bbfcb6 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

TV: Update history on track change

parent 3b473997
No related branches found
No related tags found
No related merge requests found
......@@ -277,6 +277,10 @@ class MainTvFragment : BrowseSupportFragment(), OnItemViewSelectedListener, OnIt
}
}
fun updateHistory() {
if (displayHistory) historyModel.refresh()
}
override fun onChanged(list: MutableList<MediaWrapper>?) {
list?.let {
if (!it.isEmpty()) {
......
......@@ -42,6 +42,7 @@ class NowPlayingDelegate(private val fragment: MainTvFragment): PlaybackService.
fragment.updateAudioCategories(service?.currentMediaWrapper?.let {
DummyItem(CATEGORY_NOW_PLAYING, it.title, it.artist).apply { setArtWork(service?.coverArt) }
})
fragment.updateHistory()
}
override fun onConnected(service: PlaybackService) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment