Merge "Add a functionality to disable the spell checker"

This commit is contained in:
satok
2011-08-31 05:57:19 -07:00
committed by Android (Google) Code Review

View File

@@ -87,6 +87,11 @@ public final class TextServicesManager {
throw new IllegalArgumentException("Locale should not be null if you don't refer"
+ " settings.");
}
if (referToSpellCheckerLanguageSettings && !isSpellCheckerEnabled()) {
return null;
}
final SpellCheckerInfo sci;
try {
sci = sService.getCurrentSpellChecker(null);