Merge "Handle double space inserting a period."

main
Chieu Nguyen 2015-02-27 21:24:35 +00:00 committed by Android (Google) Code Review
commit 98886775cf
2 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,9 @@ public final class StatsUtils {
final String commitWord, final boolean isBatchMode) {
}
public static void onDoubleSpacePeriod() {
}
public static void onLoadSettings(SettingsValues settingsValues) {
}

View File

@ -925,6 +925,7 @@ public final class InputLogic {
if (tryPerformDoubleSpacePeriod(event, inputTransaction)) {
mSpaceState = SpaceState.DOUBLE;
inputTransaction.setRequiresUpdateSuggestions();
StatsUtils.onDoubleSpacePeriod();
} else if (swapWeakSpace && trySwapSwapperAndSpace(event, inputTransaction)) {
mSpaceState = SpaceState.SWAP_PUNCTUATION;
mSuggestionStripViewAccessor.setNeutralSuggestionStrip();