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

* commit 'e7084159de99947180729fae7f2d1328d4f4f822':
  Check the code point instead of the character when determining digit sections.
This commit is contained in:
Winson Chung
2015-03-24 22:58:34 +00:00
committed by Android Git Automerger
@@ -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 "#";