Fix: Spell checker cannot be re-enabled.

Without this CL, preference for enabling spell checking is disabled
when spell checking is disabled.
This issue makes it impossible to re-enable spell checking from the
settings UI.
This was introduced in I0ed71bbb580e3547d97e321799ac2b77b1f284a3
that fixes Bug: 26685795.

Bug: 28157871
Change-Id: I386baf2dd79347c1202f885a3f749aea3fb6a58d
This commit is contained in:
Keisuke Kuroyanagi
2016-04-17 16:52:11 +09:00
parent 490e40ecc8
commit c7fc075e12

View File

@@ -262,7 +262,6 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
final TextServicesManager tsm = (TextServicesManager) getSystemService(
Context.TEXT_SERVICES_MANAGER_SERVICE);
if (!tsm.isSpellCheckerEnabled()) {
spellChecker.setEnabled(false);
spellChecker.setSummary(R.string.switch_off_text);
} else {
final SpellCheckerInfo sci = tsm.getCurrentSpellChecker();