summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/textservice
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-08-25 16:50:11 +0900
committersatok <satok@google.com>2011-08-25 17:08:19 +0900
commita33c4fc5bed76727f1e06e522e0136101a2304cd (patch)
treefee8144085f9ea04eabca2152375288161982ebf /core/java/android/view/textservice
parent1fc756da434441708eb557a22363eea7f41f3f73 (diff)
downloadframeworks_base-a33c4fc5bed76727f1e06e522e0136101a2304cd.zip
frameworks_base-a33c4fc5bed76727f1e06e522e0136101a2304cd.tar.gz
frameworks_base-a33c4fc5bed76727f1e06e522e0136101a2304cd.tar.bz2
Add functions to enable / disable spell checker
Bug: 5057977 Change-Id: I2b27bd5f55feb305368034d7e95f83257ac4b3e6
Diffstat (limited to 'core/java/android/view/textservice')
-rw-r--r--core/java/android/view/textservice/TextServicesManager.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/core/java/android/view/textservice/TextServicesManager.java b/core/java/android/view/textservice/TextServicesManager.java
index bb13052..5dca348 100644
--- a/core/java/android/view/textservice/TextServicesManager.java
+++ b/core/java/android/view/textservice/TextServicesManager.java
@@ -170,5 +170,26 @@ public final class TextServicesManager {
}
}
+ /**
+ * @hide
+ */
+ public void setSpellCheckerEnabled(boolean enabled) {
+ try {
+ sService.setSpellCheckerEnabled(enabled);
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error in setSpellCheckerSubtype:" + e);
+ }
+ }
+ /**
+ * @hide
+ */
+ public boolean isSpellCheckerEnabled() {
+ try {
+ return sService.isSpellCheckerEnabled();
+ } catch (RemoteException e) {
+ Log.e(TAG, "Error in setSpellCheckerSubtype:" + e);
+ return false;
+ }
+ }
}