Merge "Fix crash on rotation." into nyc-dev am: 075690875b am: edd4824d44

am: 1f9ae181b0

* commit '1f9ae181b0165afea0e5f70d35d1b9ec1027b049':
  Fix crash on rotation.

Change-Id: I88b20356aef9ebf32ffc6cfc9aa6048ce93d0494
This commit is contained in:
Julia Reynolds
2016-05-16 20:25:10 +00:00
committed by android-build-merger

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