commit | 3bca416061f2ef9552b4ba78b3aabc9972eba6c2 | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Tue Jul 26 08:01:54 2011 +0900 |
committer | satok <satok@google.com> | Tue Jul 26 08:01:54 2011 +0900 |
tree | a0d437bc3bb3cf6ed4bb22aafd40321623e0a8d1 | |
parent | c0b569c317fad96abbf0ea23d07eb6d19f634ccf [diff] |
[step8] Use api to get the current spell checker Change-Id: I082785314710af2c8db33c2c18050651a0302b62
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 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 @@ final PreferenceScreen scs = new PreferenceScreen(getActivity(), null); scs.setTitle(sci.getId()); getPreferenceScreen().addPreference(scs); - } } }