mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix an NPE in settings
Change-Id: I264c001a9cc28f864ad024fcf51fb42e9c203d3f
This commit is contained in:
parent
2e58804a98
commit
ad56a9ac51
@ -426,8 +426,10 @@ public class Settings extends InputMethodSettingsActivity
|
||||
final boolean showBigramSuggestionsOption = res.getBoolean(
|
||||
R.bool.config_enable_bigram_suggestions_option);
|
||||
if (!showBigramSuggestionsOption) {
|
||||
textCorrectionGroup.removePreference(findPreference(PREF_BIGRAM_SUGGESTIONS));
|
||||
textCorrectionGroup.removePreference(findPreference(PREF_BIGRAM_PREDICTIONS));
|
||||
textCorrectionGroup.removePreference(mBigramSuggestion);
|
||||
if (null != mBigramPrediction) {
|
||||
textCorrectionGroup.removePreference(mBigramPrediction);
|
||||
}
|
||||
}
|
||||
|
||||
final boolean showUsabilityModeStudyOption = res.getBoolean(
|
||||
|
Loading…
x
Reference in New Issue
Block a user