Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
对于城市选择多音字的处理,我参照了引用包中'TinyPinyin'的处理方案:多音字快速处理方案,增加了中文城市的字典库:
com.github.promeg:tinypinyin-lexicons-android-cncity:2.0.3
。不过因为字典库的minSdk=16的原因,这里我将项目的minSdk也'粗暴'的改成了16(- -!)。
增加了
BaseIndexPinyinBean
对于子类是否对城市名进行多音字处理:public abstract boolean isNeedToConvertCity();
。处理比较简陋,请多指教 :)