Fix crash on rotation.

Change-Id: Ife0a040bfc1a6ecc579d544f78cc45e37f5bca3c
Fixes: 28767083
This commit is contained in:
Julia Reynolds
2016-05-16 15:56:15 -04:00
parent 992422fd5e
commit 176b28663b

View File

@@ -44,6 +44,7 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment
private static final boolean DBG = false;
private static final String KEY_SPELL_CHECKER_LANGUAGE = "spellchecker_language";
private static final String KEY_DEFAULT_SPELL_CHECKER = "default_spellchecker";
private static final int ITEM_ID_USE_SYSTEM_LANGUAGE = 0;
private SwitchBar mSwitchBar;
@@ -82,6 +83,7 @@ public class SpellCheckersSettings extends SettingsPreferenceFragment
} else {
pref.setSummary(R.string.spell_checker_not_selected);
}
pref.setKey(KEY_DEFAULT_SPELL_CHECKER);
pref.setOnPreferenceChangeListener(this);
getPreferenceScreen().addPreference(pref);
}