Android KK平,联系人列表#组置于A~Z之前

修改文件ContactLocaleUtils.java两处
(Path:packages/contactsprovider/src/com/android/providers/contacts)
1. 函数public ContactLocaleUtilsBase(Locale locale)结尾处
        ...
        mAlphabeticIndexBucketCount = mAlphabeticIndex.getBucketCount();
            //add for put # group to first START
            //mNumberBucketIndex = mAlphabeticIndexBucketCount - 1;
            mNumberBucketIndex = 0;
            //add for put # group to first END
 
2. 函数public int getBucketIndex(String name)结尾处
        ...
        final int bucket = mAlphabeticIndex.getBucketIndex(name);
            if (bucket < 0) {
                return -1;
            }
            //add for put # group to first START
            //if (bucket >= mNumberBucketIndex) {
            //    return bucket + 1;
            //}
            //return bucket;
            return bucket+1;
            //add for put # group to first END

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。