Remove dependency in correction settings.
Autocorrection and next-word suggestion are independent, but the settings UI creates a dependency. Bug: 19896768. Change-Id: Ibcdd497cdfd7b9c3a69c61e0c2d116d67df84ef8main
parent
fac1f631b9
commit
f74005d888
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue