ui: fix incorrectly aligned disc headers
Fix an issue where disc headers would be at the top when no subtitle as available. I really thought that TextView.text would be null if I set it to null. Instead it becomes an empty string, breaking the visbility change. Fix it by just using the disc value. Resolves #472.
This commit is contained in:
parent
6031fb2890
commit
55597e4976
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ private class DiscHeaderViewHolder(private val binding: ItemDiscHeaderBinding) :
|
||||||
binding.discNumber.text = binding.context.getString(R.string.fmt_disc_no, disc.number)
|
binding.discNumber.text = binding.context.getString(R.string.fmt_disc_no, disc.number)
|
||||||
binding.discName.apply {
|
binding.discName.apply {
|
||||||
text = disc.name
|
text = disc.name
|
||||||
isGone = text == null
|
isGone = disc.name == null
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
logD("Disc is null, defaulting to no disc")
|
logD("Disc is null, defaulting to no disc")
|
||||||
|
|
Loading…
Reference in a new issue