am 5fca38c5: Merge "Small performance improvement / minor bugfix"
* commit '5fca38c538bd57639f70332b7f73919acac18a86': Small performance improvement / minor bugfixmain
commit
63e442cf6b
|
@ -161,8 +161,7 @@ public final class LatinIME extends InputMethodService implements KeyboardAction
|
||||||
mPositionalInfoForUserDictPendingAddition = null;
|
mPositionalInfoForUserDictPendingAddition = null;
|
||||||
private final WordComposer mWordComposer = new WordComposer();
|
private final WordComposer mWordComposer = new WordComposer();
|
||||||
private final RichInputConnection mConnection = new RichInputConnection(this);
|
private final RichInputConnection mConnection = new RichInputConnection(this);
|
||||||
private RecapitalizeStatus mRecapitalizeStatus = new RecapitalizeStatus(-1, -1, "",
|
private RecapitalizeStatus mRecapitalizeStatus = null;
|
||||||
Locale.getDefault(), ""); // Dummy object that will match no real recapitalize
|
|
||||||
|
|
||||||
// Keep track of the last selection range to decide if we need to show word alternatives
|
// 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;
|
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.
|
// We moved the cursor. If we are touching a word, we need to resume suggestion.
|
||||||
mHandler.postResumeSuggestions();
|
mHandler.postResumeSuggestions();
|
||||||
|
// Reset the last recapitalization.
|
||||||
|
mRecapitalizeStatus = null;
|
||||||
mKeyboardSwitcher.updateShiftState();
|
mKeyboardSwitcher.updateShiftState();
|
||||||
}
|
}
|
||||||
mExpectingUpdateSelection = false;
|
mExpectingUpdateSelection = false;
|
||||||
|
|
Loading…
Reference in New Issue