修改文件ContactLocaleUtils.java兩處
(Path:packages/contactsprovider/src/com/android/providers/contacts)
1. 函數public ContactLocaleUtilsBase(Locale locale)結尾處
...
mAlphabeticIndexBucketCount = mAlphabeticIndex.getBucketCount();
//add
//mNumberBucketIndex = mAlphabeticIndexBucketCount - 1;
mNumberBucketIndex = 0;
2. 函數public int getBucketIndex(String name)結尾處
...
final int bucket = mAlphabeticIndex.getBucketIndex(name);
if (bucket < 0) {
return -1;
}
//add
if(bucket == 0){ //將特殊符號聯系人歸類到#組,若不需要請去掉
return mNumberBucketIndex;
}
//if (bucket >= mNumberBucketIndex) {
// return bucket + 1;
//}
//return bucket;
return bucket+1;