[Android] Fix headers drawing in PlaylistActivity

Nicolas Pomepuy git at videolan.org
Thu Jul 9 14:47:28 CEST 2020


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Thu Jul  9 06:20:06 2020 +0200| [ce7e0e471e8577270a92b9181c320d5a655e91d4] | committer: Nicolas Pomepuy

Fix headers drawing in PlaylistActivity

> https://code.videolan.org/videolan/vlc-android/commit/ce7e0e471e8577270a92b9181c320d5a655e91d4
---

 application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
index 55770fad0..61fd6105f 100644
--- a/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
+++ b/application/vlc-android/src/org/videolan/vlc/gui/PlaylistActivity.kt
@@ -116,6 +116,10 @@ open class PlaylistActivity : AudioPlayerContainerActivity(), IEventsHandler<Med
             (tracks as? PagedList<MediaLibraryItem>)?.let { audioBrowserAdapter.submitList(it) }
             menu.let { UiTools.updateSortTitles(it, viewModel.tracksProvider) }
         })
+
+        viewModel.tracksProvider.liveHeaders.observe(this, Observer {
+            binding.songs.invalidateItemDecorations()
+        })
         audioBrowserAdapter = AudioBrowserAdapter(MediaLibraryItem.TYPE_MEDIA, this, this, isPlaylist)
         if (isPlaylist) {
             itemTouchHelper = ItemTouchHelper(SwipeDragItemTouchHelperCallback(audioBrowserAdapter))



More information about the Android mailing list