diff options
author | 2013-04-17 19:47:20 -0700 | |
---|---|---|
committer | 2013-04-17 19:47:20 -0700 | |
commit | 892f1b46d5de1d8936efd117419ef71c87e4f425 (patch) | |
tree | 84a1f88a626b334f352196b73a8cf98901a6aef5 /java/src | |
parent | 441fbbaf1da7920b10f39d3462e019cde85c1b3e (diff) | |
parent | 63e442cf6b50f4a60c07a24f45a1db978d9f63f9 (diff) | |
download | latinime-892f1b46d5de1d8936efd117419ef71c87e4f425.tar.gz latinime-892f1b46d5de1d8936efd117419ef71c87e4f425.tar.xz latinime-892f1b46d5de1d8936efd117419ef71c87e4f425.zip |
am 63e442cf: am 5fca38c5: Merge "Small performance improvement / minor bugfix"
* commit '63e442cf6b50f4a60c07a24f45a1db978d9f63f9':
Small performance improvement / minor bugfix
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index 4db0a906e..bf4c22d23 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -161,8 +161,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction mPositionalInfoForUserDictPendingAddition = null; private final WordComposer mWordComposer = new WordComposer(); private final RichInputConnection mConnection = new RichInputConnection(this); - private RecapitalizeStatus mRecapitalizeStatus = new RecapitalizeStatus(-1, -1, "", - Locale.getDefault(), ""); // Dummy object that will match no real recapitalize + private RecapitalizeStatus mRecapitalizeStatus = null; // Keep track of the last selection range to decide if we need to show word alternatives private static final int NOT_A_CURSOR_POSITION = -1; @@ -925,7 +924,8 @@ public final class LatinIME extends InputMethodService implements KeyboardAction // We moved the cursor. If we are touching a word, we need to resume suggestion. mHandler.postResumeSuggestions(); - + // Reset the last recapitalization. + mRecapitalizeStatus = null; mKeyboardSwitcher.updateShiftState(); } mExpectingUpdateSelection = false; |