Merge "Check the code point instead of the character when determining digit sections." into ub-launcher3-burnaby

This commit is contained in:
Winson Chung
2015-03-24 22:54:06 +00:00
committed by Android (Google) Code Review
@@ -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 "#";