am f74005d8: Remove dependency in correction settings.

* commit 'f74005d888febc12ffcde04d230c8f5591b55a95':
  Remove dependency in correction settings.
main
Chieu Nguyen 2015-03-24 01:19:55 +00:00 committed by Android Git Automerger
commit b84617af20
1 changed files with 0 additions and 13 deletions

View File

@ -61,8 +61,6 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
final Context context = getActivity();
final PackageManager pm = context.getPackageManager();
ensureConsistencyOfAutoCorrectionSettings();
final Preference dictionaryLink = findPreference(Settings.PREF_CONFIGURE_DICTIONARIES_KEY);
final Intent intent = dictionaryLink.getIntent();
intent.setClassName(context.getPackageName(), DictionarySettingsActivity.class.getName());
@ -82,17 +80,6 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
}
}
@Override
public void onSharedPreferenceChanged(final SharedPreferences prefs, final String key) {
ensureConsistencyOfAutoCorrectionSettings();
}
private void ensureConsistencyOfAutoCorrectionSettings() {
final TwoStatePreference autoCorrectionPref = (TwoStatePreference)
findPreference(Settings.PREF_AUTO_CORRECTION);
setPreferenceEnabled(Settings.PREF_BIGRAM_PREDICTIONS, autoCorrectionPref.isChecked());
}
private void overwriteUserDictionaryPreference(final Preference userDictionaryPreference) {
final Activity activity = getActivity();
final TreeSet<String> localeList = UserDictionaryList.getUserDictionaryLocalesSet(activity);