am f74005d8: Remove dependency in correction settings.
* commit 'f74005d888febc12ffcde04d230c8f5591b55a95': Remove dependency in correction settings.main
commit
b84617af20
|
@ -61,8 +61,6 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
|
||||||
final Context context = getActivity();
|
final Context context = getActivity();
|
||||||
final PackageManager pm = context.getPackageManager();
|
final PackageManager pm = context.getPackageManager();
|
||||||
|
|
||||||
ensureConsistencyOfAutoCorrectionSettings();
|
|
||||||
|
|
||||||
final Preference dictionaryLink = findPreference(Settings.PREF_CONFIGURE_DICTIONARIES_KEY);
|
final Preference dictionaryLink = findPreference(Settings.PREF_CONFIGURE_DICTIONARIES_KEY);
|
||||||
final Intent intent = dictionaryLink.getIntent();
|
final Intent intent = dictionaryLink.getIntent();
|
||||||
intent.setClassName(context.getPackageName(), DictionarySettingsActivity.class.getName());
|
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) {
|
private void overwriteUserDictionaryPreference(final Preference userDictionaryPreference) {
|
||||||
final Activity activity = getActivity();
|
final Activity activity = getActivity();
|
||||||
final TreeSet<String> localeList = UserDictionaryList.getUserDictionaryLocalesSet(activity);
|
final TreeSet<String> localeList = UserDictionaryList.getUserDictionaryLocalesSet(activity);
|
||||||
|
|
Loading…
Reference in New Issue