Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9a120297 authored by Danesh M's avatar Danesh M Committed by Steve Kondik
Browse files

LanguageInputSettings : Ensure current spell checker is valid

Change-Id: Id950d0f7b7b7f2e414bbd8a8f46414f8c65ea4b7
parent 633fd6e9
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -298,7 +298,10 @@ public class InputMethodAndLanguageSettings extends SettingsPreferenceFragment
                    Context.TEXT_SERVICES_MANAGER_SERVICE);
            if (tsm.isSpellCheckerEnabled()) {
                final SpellCheckerInfo sci = tsm.getCurrentSpellChecker();
                // CurrentSpellChecker can be null for reasons such as invalid user
                if (sci != null) {
                    spellChecker.setSummary(sci.loadLabel(getPackageManager()));
                }
            } else {
                spellChecker.setSummary(R.string.switch_off_text);
            }