songs: fix fast-scroll indicator bug

Fix an issue with fast-scroll indicator creation where titles that
began with "An" would not use the second word at the proper sort title.
This commit is contained in:
OxygenCobalt 2021-06-10 09:13:34 -06:00
parent 8eb301f983
commit 9d39a2aaeb
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -81,6 +81,10 @@ class SongsFragment : Fragment() {
return get(2).uppercaseChar()
}
if (length > 4 && startsWith("an ", true)) {
return get(3).uppercaseChar()
}
return get(0).uppercaseChar()
}
}