Update track number sizing

Use AppCompatTextView on the track number so that track numbers over 100 are not cut off. Sort of, track numbers over 100000 will be cut off, but I bet that will be rare in normal use.
This commit is contained in:
OxygenCobalt
2020-09-19 16:44:00 -06:00
parent 4d47dcd464
commit 309ed2dcff
6 changed files with 20 additions and 15 deletions
@@ -55,9 +55,6 @@ class MainFragment : Fragment() {
if (position > 0) {
tab.icon?.setTint(colorInactive)
}
// Init the fragment
fragmentAt(position)
}.attach()
// Set up the selected/deselected colors
@@ -82,7 +82,8 @@ fun TextView.bindArtistCounts(artist: Artist) {
text = context.getString(R.string.format_double_counts, albums, songs)
}
// TODO: Add option to just list all genres.
// Get the artist genre.
// TODO: Stub, add option to list all genres instead of just the most prominent
@BindingAdapter("artistGenre")
fun TextView.getArtistGenre(artist: Artist) {
text = artist.genre