diff options
Diffstat (limited to 'src/com/android/settings/inputmethod/SpellCheckerUtils.java')
-rw-r--r-- | src/com/android/settings/inputmethod/SpellCheckerUtils.java | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/com/android/settings/inputmethod/SpellCheckerUtils.java b/src/com/android/settings/inputmethod/SpellCheckerUtils.java index 3cc256f..09f3a24 100644 --- a/src/com/android/settings/inputmethod/SpellCheckerUtils.java +++ b/src/com/android/settings/inputmethod/SpellCheckerUtils.java @@ -16,20 +16,28 @@ package com.android.settings.inputmethod; +import android.util.Log; import android.view.textservice.SpellCheckerInfo; +import android.view.textservice.TextServicesManager; public class SpellCheckerUtils { - public static void setSpellCheckersEnabled(boolean enable) { + private static final String TAG = SpellCheckerUtils.class.getSimpleName(); + private static final boolean DBG = false; + public static void setSpellCheckersEnabled(TextServicesManager tsm, boolean enable) { } - public static boolean getSpellCheckersEnabled() { + public static boolean getSpellCheckersEnabled(TextServicesManager tsm) { return true; } - public static void setCurrentSpellChecker(SpellCheckerInfo info) { + public static void setCurrentSpellChecker(TextServicesManager tsm, SpellCheckerInfo info) { } - public static SpellCheckerInfo getCurrentSpellChecker() { + public static SpellCheckerInfo getCurrentSpellChecker(TextServicesManager tsm) { return null; } - public static SpellCheckerInfo[] getEnabledSpellCheckers() { - return null; + public static SpellCheckerInfo[] getEnabledSpellCheckers(TextServicesManager tsm) { + final SpellCheckerInfo[] retval = tsm.getEnabledSpellCheckers(); + if (DBG) { + Log.d(TAG, "get spell checkers: " + retval.length); + } + return retval; } } |