问题描述:
Android TV默认Leanback Keyboard键盘,使用mm命令将AOSP输入法编译系统后,在使用前两者任一个输入法后按下BACK返回键某些情况下,输入的英文文本始终会出现一个红色下划线(无论拼写对错,而其他语言不会),并且使用Android Studio直接在未将AOSP输入法编译进系统的系统中进行AOSP输入法安装是不会出现红色下划线的。
问题分析:
红色下划线看起来像是Spell Checker检查出现的,受这篇讨论启发链接文章,发现该红色下划线可能与Settings的Secure表中的selected_spell_checker和spell_checker_enabled参数有关
查询源码:
查询Settings.java文件,其中对以上2个参数的描述如下:
/**
* The {@link ComponentName} string of the selected spell checker service which is
* one of the services managed by the text service manager.
*
* @hide
*/
public static final String SELECTED_SPELL_CHECKER = "