[packages/apps/Settings] fix problem when set languageAndInputMethod
This commit is contained in:
@ -262,7 +262,8 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
|
||||
Context.TEXT_SERVICES_MANAGER_SERVICE);
|
||||
if (tsm.isSpellCheckerEnabled()) {
|
||||
final SpellCheckerInfo sci = tsm.getCurrentSpellChecker();
|
||||
spellChecker.setSummary(sci.loadLabel(getPackageManager()));
|
||||
if(sci!=null)
|
||||
spellChecker.setSummary(sci.loadLabel(getPackageManager()));
|
||||
} else {
|
||||
spellChecker.setSummary(R.string.switch_off_text);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user