aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2013-07-26 00:01:19 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-07-26 00:01:19 -0700
commit87677d7532b570e23d8ff74e83f133e9db880a02 (patch)
tree4a57c7ea9778eb496d862ea3adf219a276e0349d /java
parent25446d31f2fec5b888d9b4d73b2daf6b49dcc5eb (diff)
parent38e9802690bbb96a00762ce5d172c5a37716fe1d (diff)
downloadlatinime-87677d7532b570e23d8ff74e83f133e9db880a02.tar.gz
latinime-87677d7532b570e23d8ff74e83f133e9db880a02.tar.xz
latinime-87677d7532b570e23d8ff74e83f133e9db880a02.zip
am 38e98026: Merge "Revert "Very simple refactoring""
* commit '38e9802690bbb96a00762ce5d172c5a37716fe1d': Revert "Very simple refactoring"
Diffstat (limited to 'java')
-rw-r--r--java/src/com/android/inputmethod/latin/RichInputConnection.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/java/src/com/android/inputmethod/latin/RichInputConnection.java b/java/src/com/android/inputmethod/latin/RichInputConnection.java
index 7b8ed1f94..2c65e5eca 100644
--- a/java/src/com/android/inputmethod/latin/RichInputConnection.java
+++ b/java/src/com/android/inputmethod/latin/RichInputConnection.java
@@ -139,17 +139,13 @@ public final class RichInputConnection {
if (DEBUG_PREVIOUS_TEXT) checkConsistencyForDebug();
}
- private void refreshCache() {
+ public void resetCachesUponCursorMove(final int newCursorPosition,
+ final boolean shouldFinishComposition) {
+ mCurrentCursorPosition = newCursorPosition;
mComposingText.setLength(0);
mCommittedTextBeforeComposingText.setLength(0);
final CharSequence textBeforeCursor = getTextBeforeCursor(DEFAULT_TEXT_CACHE_SIZE, 0);
if (null != textBeforeCursor) mCommittedTextBeforeComposingText.append(textBeforeCursor);
- }
-
- public void resetCachesUponCursorMove(final int newCursorPosition,
- final boolean shouldFinishComposition) {
- mCurrentCursorPosition = newCursorPosition;
- refreshCache();
if (null != mIC && shouldFinishComposition) {
mIC.finishComposingText();
if (ProductionFlag.USES_DEVELOPMENT_ONLY_DIAGNOSTICS) {