Merge "Check the code point instead of the character when determining digit sections." into ub-launcher3-burnaby
This commit is contained in:
@@ -105,7 +105,7 @@ public class AlphabeticIndexCompat extends BaseAlphabeticIndex {
|
||||
public String computeSectionName(String s) {
|
||||
String sectionName = getBucketLabel(getBucketIndex(s));
|
||||
if (sectionName.trim().isEmpty() && s.length() > 0) {
|
||||
boolean startsWithDigit = Character.isDigit(s.charAt(0));
|
||||
boolean startsWithDigit = Character.isDigit(Character.codePointAt(s.trim(), 0));
|
||||
if (startsWithDigit) {
|
||||
// Digit section
|
||||
return "#";
|
||||
|
||||
Reference in New Issue
Block a user