diff options
author | satok <satok@google.com> | 2011-07-26 08:01:54 +0900 |
---|---|---|
committer | satok <satok@google.com> | 2011-07-26 08:01:54 +0900 |
commit | 3bca416061f2ef9552b4ba78b3aabc9972eba6c2 (patch) | |
tree | a0d437bc3bb3cf6ed4bb22aafd40321623e0a8d1 /src | |
parent | c0b569c317fad96abbf0ea23d07eb6d19f634ccf (diff) | |
download | packages_apps_settings-3bca416061f2ef9552b4ba78b3aabc9972eba6c2.zip packages_apps_settings-3bca416061f2ef9552b4ba78b3aabc9972eba6c2.tar.gz packages_apps_settings-3bca416061f2ef9552b4ba78b3aabc9972eba6c2.tar.bz2 |
[step8] Use api to get the current spell checker
Change-Id: I082785314710af2c8db33c2c18050651a0302b62
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/settings/inputmethod/SpellCheckerUtils.java | 6 | ||||
-rw-r--r-- | src/com/android/settings/inputmethod/SpellCheckersSettings.java | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/settings/inputmethod/SpellCheckerUtils.java b/src/com/android/settings/inputmethod/SpellCheckerUtils.java index 09f3a24..fe761a6 100644 --- a/src/com/android/settings/inputmethod/SpellCheckerUtils.java +++ b/src/com/android/settings/inputmethod/SpellCheckerUtils.java @@ -31,7 +31,11 @@ public class SpellCheckerUtils { public static void setCurrentSpellChecker(TextServicesManager tsm, SpellCheckerInfo info) { } public static SpellCheckerInfo getCurrentSpellChecker(TextServicesManager tsm) { - return null; + final SpellCheckerInfo retval = tsm.getCurrentSpellChecker(); + if (DBG) { + Log.d(TAG, "getCurrentSpellChecker: " + retval); + } + return retval; } public static SpellCheckerInfo[] getEnabledSpellCheckers(TextServicesManager tsm) { final SpellCheckerInfo[] retval = tsm.getEnabledSpellCheckers(); diff --git a/src/com/android/settings/inputmethod/SpellCheckersSettings.java b/src/com/android/settings/inputmethod/SpellCheckersSettings.java index 9587e96..c8b3ca9 100644 --- a/src/com/android/settings/inputmethod/SpellCheckersSettings.java +++ b/src/com/android/settings/inputmethod/SpellCheckersSettings.java @@ -84,7 +84,6 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment final PreferenceScreen scs = new PreferenceScreen(getActivity(), null); scs.setTitle(sci.getId()); getPreferenceScreen().addPreference(scs); - } } } |