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:
parent
8eb301f983
commit
9d39a2aaeb
1 changed files with 4 additions and 0 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue