[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);
-            
         }
     }
 }