diff options
author | 2013-05-17 10:47:00 -0700 | |
---|---|---|
committer | 2013-05-17 10:47:00 -0700 | |
commit | ec6e5d37be1aee9c5c3478fe8c50cce71cfeb325 (patch) | |
tree | 0275f0fb4a55afce2f03843de445ff45d9643721 /java/src/com/android/inputmethod/latin/LatinIME.java | |
parent | 265861dc98879410075b14ac2e86ff02c60f214e (diff) | |
parent | de4e579c68e74fa0c85b376769e9428cd822add7 (diff) | |
download | latinime-ec6e5d37be1aee9c5c3478fe8c50cce71cfeb325.tar.gz latinime-ec6e5d37be1aee9c5c3478fe8c50cce71cfeb325.tar.xz latinime-ec6e5d37be1aee9c5c3478fe8c50cce71cfeb325.zip |
am de4e579c: Merge "Fix punctuation logging"
* commit 'de4e579c68e74fa0c85b376769e9428cd822add7':
Fix punctuation logging
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index ad0c1c8b3..883c9469b 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -2021,9 +2021,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // Returns true if we did an autocorrection, false otherwise. private boolean handleSeparator(final int primaryCode, final int x, final int y, final int spaceState) { - if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { - ResearchLogger.latinIME_handleSeparator(primaryCode, mWordComposer.isComposingWord()); - } boolean didAutoCorrect = false; if (mWordComposer.isCursorFrontOrMiddleOfComposingWord()) { // If we are in the middle of a recorrection, we need to commit the recorrection @@ -2047,6 +2044,9 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen mSettings.getCurrent().isUsuallyPrecededBySpace(primaryCode)) { promotePhantomSpace(); } + if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { + ResearchLogger.latinIME_handleSeparator(primaryCode, mWordComposer.isComposingWord()); + } sendKeyCodePoint(primaryCode); if (Constants.CODE_SPACE == primaryCode) { @@ -2594,10 +2594,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen public void promotePhantomSpace() { if (mSettings.getCurrent().shouldInsertSpacesAutomatically() && !mConnection.textBeforeCursorLooksLikeURL()) { - sendKeyCodePoint(Constants.CODE_SPACE); if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) { ResearchLogger.latinIME_promotePhantomSpace(); } + sendKeyCodePoint(Constants.CODE_SPACE); } } |