Merge "Add a functionality to disable the spell checker"
This commit is contained in:
@@ -87,6 +87,11 @@ public final class TextServicesManager {
|
|||||||
throw new IllegalArgumentException("Locale should not be null if you don't refer"
|
throw new IllegalArgumentException("Locale should not be null if you don't refer"
|
||||||
+ " settings.");
|
+ " settings.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (referToSpellCheckerLanguageSettings && !isSpellCheckerEnabled()) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
final SpellCheckerInfo sci;
|
final SpellCheckerInfo sci;
|
||||||
try {
|
try {
|
||||||
sci = sService.getCurrentSpellChecker(null);
|
sci = sService.getCurrentSpellChecker(null);
|
||||||
|
|||||||
Reference in New Issue
Block a user