playback: fix broken queue sheet scroll

This commit is contained in:
Alexander Capehart 2024-07-20 18:33:23 -06:00
parent 7a7843f7f9
commit 609a5f18bf
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47
2 changed files with 4 additions and 2 deletions

View file

@ -100,7 +100,9 @@ dependencies {
// noinspection GradleDependency
implementation "androidx.recyclerview:recyclerview:1.2.1"
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.viewpager2:viewpager2:1.1.0"
// 1.1.0 upgrades recyclerview to 1.3.0, keep it on 1.0.0
//noinspection GradleDependency
implementation "androidx.viewpager2:viewpager2:1.0.0"
// Lifecycle
def lifecycle_version = "2.8.3"

View file

@ -223,7 +223,7 @@ class PlaybackPanelFragment :
val context = requireContext()
logD("Updating song display: $song")
binding.playbackCover.bind(song)
binding.playbackSong?.text = song.name.resolve(context)
binding.playbackSong.text = song.name.resolve(context)
binding.playbackArtist.text = song.artists.resolveNames(context)
binding.playbackAlbum?.text = song.album.name.resolve(context)
binding.playbackSeekBar?.durationDs = song.durationMs.msToDs()