Handle double space inserting a period.
Change-Id: I109f0e9cf3e972bf60aa3fbbe817337aef70ea3c
This commit is contained in:
parent
69c04cadc7
commit
fdf3cc41ee
2 changed files with 4 additions and 0 deletions
|
@ -83,6 +83,9 @@ public final class StatsUtils {
|
||||||
final String commitWord, final boolean isBatchMode) {
|
final String commitWord, final boolean isBatchMode) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void onDoubleSpacePeriod() {
|
||||||
|
}
|
||||||
|
|
||||||
public static void onLoadSettings(SettingsValues settingsValues) {
|
public static void onLoadSettings(SettingsValues settingsValues) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -925,6 +925,7 @@ public final class InputLogic {
|
||||||
if (tryPerformDoubleSpacePeriod(event, inputTransaction)) {
|
if (tryPerformDoubleSpacePeriod(event, inputTransaction)) {
|
||||||
mSpaceState = SpaceState.DOUBLE;
|
mSpaceState = SpaceState.DOUBLE;
|
||||||
inputTransaction.setRequiresUpdateSuggestions();
|
inputTransaction.setRequiresUpdateSuggestions();
|
||||||
|
StatsUtils.onDoubleSpacePeriod();
|
||||||
} else if (swapWeakSpace && trySwapSwapperAndSpace(event, inputTransaction)) {
|
} else if (swapWeakSpace && trySwapSwapperAndSpace(event, inputTransaction)) {
|
||||||
mSpaceState = SpaceState.SWAP_PUNCTUATION;
|
mSpaceState = SpaceState.SWAP_PUNCTUATION;
|
||||||
mSuggestionStripViewAccessor.setNeutralSuggestionStrip();
|
mSuggestionStripViewAccessor.setNeutralSuggestionStrip();
|
||||||
|
|
Loading…
Reference in a new issue