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:
@@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user