mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Disable neutral punctuation suggestions
This commit is contained in:
parent
2ff68bf7cd
commit
7fdf54ec61
@ -1617,10 +1617,7 @@ public class LatinIMELegacy implements KeyboardActionListener,
|
|||||||
// punctuation suggestions (if it's disabled).
|
// punctuation suggestions (if it's disabled).
|
||||||
@Override
|
@Override
|
||||||
public void setNeutralSuggestionStrip() {
|
public void setNeutralSuggestionStrip() {
|
||||||
final SettingsValues currentSettings = mSettings.getCurrent();
|
final SuggestedWords neutralSuggestions = SuggestedWords.getEmptyInstance();
|
||||||
final SuggestedWords neutralSuggestions = currentSettings.mBigramPredictionEnabled
|
|
||||||
? SuggestedWords.getEmptyInstance()
|
|
||||||
: currentSettings.mSpacingAndPunctuations.mSuggestPuncList;
|
|
||||||
setSuggestedWords(neutralSuggestions);
|
setSuggestedWords(neutralSuggestions);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,8 +164,8 @@ public class SettingsValues {
|
|||||||
final String autoCorrectionThresholdRawValue = mAutoCorrectEnabled
|
final String autoCorrectionThresholdRawValue = mAutoCorrectEnabled
|
||||||
? res.getString(R.string.auto_correction_threshold_mode_index_modest)
|
? res.getString(R.string.auto_correction_threshold_mode_index_modest)
|
||||||
: res.getString(R.string.auto_correction_threshold_mode_index_off);
|
: res.getString(R.string.auto_correction_threshold_mode_index_off);
|
||||||
mBigramPredictionEnabled = readBigramPredictionEnabled(prefs, res);
|
|
||||||
mTransformerPredictionEnabled = readTransformerPredictionEnabled(prefs, res);
|
mTransformerPredictionEnabled = readTransformerPredictionEnabled(prefs, res);
|
||||||
|
mBigramPredictionEnabled = readBigramPredictionEnabled(prefs, res) || mTransformerPredictionEnabled;
|
||||||
mDoubleSpacePeriodTimeout = res.getInteger(R.integer.config_double_space_period_timeout);
|
mDoubleSpacePeriodTimeout = res.getInteger(R.integer.config_double_space_period_timeout);
|
||||||
mHasHardwareKeyboard = Settings.readHasHardwareKeyboard(res.getConfiguration());
|
mHasHardwareKeyboard = Settings.readHasHardwareKeyboard(res.getConfiguration());
|
||||||
mEnableMetricsLogging = prefs.getBoolean(Settings.PREF_ENABLE_METRICS_LOGGING, true);
|
mEnableMetricsLogging = prefs.getBoolean(Settings.PREF_ENABLE_METRICS_LOGGING, true);
|
||||||
|
Loading…
Reference in New Issue
Block a user