aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-04-15 14:28:16 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-15 14:28:16 +0000
commit5fca38c538bd57639f70332b7f73919acac18a86 (patch)
treee47823e83b4aa83d41e5e3749e10f51219b3a15c /java/src
parente3aa7f10d0f793973dbee0bc00f3421cd140271b (diff)
parent1e5bbe4ce85db23528772d1b706149bb563c3ac7 (diff)
downloadlatinime-5fca38c538bd57639f70332b7f73919acac18a86.tar.gz
latinime-5fca38c538bd57639f70332b7f73919acac18a86.tar.xz
latinime-5fca38c538bd57639f70332b7f73919acac18a86.zip
Merge "Small performance improvement / minor bugfix"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
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;