am 2321c41b
: Check boxes are replaced by switches in KitKat.
* commit '2321c41b5bf17661e7390b7afdcf0320fbd5f134': Check boxes are replaced by switches in KitKat.
This commit is contained in:
commit
f1b330c692
1 changed files with 3 additions and 3 deletions
|
@ -24,8 +24,8 @@ import android.content.pm.PackageManager;
|
||||||
import android.content.pm.ResolveInfo;
|
import android.content.pm.ResolveInfo;
|
||||||
import android.os.Build;
|
import android.os.Build;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.preference.CheckBoxPreference;
|
|
||||||
import android.preference.Preference;
|
import android.preference.Preference;
|
||||||
|
import android.preference.TwoStatePreference;
|
||||||
|
|
||||||
import com.android.inputmethod.dictionarypack.DictionarySettingsActivity;
|
import com.android.inputmethod.dictionarypack.DictionarySettingsActivity;
|
||||||
import com.android.inputmethod.latin.R;
|
import com.android.inputmethod.latin.R;
|
||||||
|
@ -88,8 +88,8 @@ public final class CorrectionSettingsFragment extends SubScreenFragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ensureConsistencyOfAutoCorrectionSettings() {
|
private void ensureConsistencyOfAutoCorrectionSettings() {
|
||||||
final CheckBoxPreference autoCorrectionPref = (CheckBoxPreference) findPreference(
|
final TwoStatePreference autoCorrectionPref = (TwoStatePreference)
|
||||||
Settings.PREF_AUTO_CORRECTION);
|
findPreference(Settings.PREF_AUTO_CORRECTION);
|
||||||
if (!autoCorrectionPref.isChecked()) {
|
if (!autoCorrectionPref.isChecked()) {
|
||||||
setPreferenceEnabled(Settings.PREF_BIGRAM_PREDICTIONS, false);
|
setPreferenceEnabled(Settings.PREF_BIGRAM_PREDICTIONS, false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue