commit | 0158a1e9ffc5a43780d37bb7b6b964a39eae6e62 | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Wed Aug 31 21:15:17 2011 +0900 |
committer | satok <satok@google.com> | Wed Aug 31 21:15:17 2011 +0900 |
tree | 389ba7c96cae738cc93000d24b5096099f01ae0b | |
parent | 6b14b23ad586b664aa09dfb46d627782ac00eb74 [diff] |
Add a functionality to disable the spell checker Change-Id: I1c2292f457d1911c149d594c175e638c92ad3917
diff --git a/core/java/android/view/textservice/TextServicesManager.java b/core/java/android/view/textservice/TextServicesManager.java index a44582b..01587aa 100644 --- a/core/java/android/view/textservice/TextServicesManager.java +++ b/core/java/android/view/textservice/TextServicesManager.java
@@ -87,6 +87,11 @@ 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);