aboutsummaryrefslogtreecommitdiffstats
path: root/java/src
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-07-05 23:42:41 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-07-05 23:42:41 -0700
commit01606c385bd336042296abf37b8d43a0687e03d0 (patch)
tree791b52b0ba5940c33cac5e4b5322781720b2692e /java/src
parent48a436081fc6886dbeecf1f2b25fd754952f0fe1 (diff)
parent746e014eb54f0d6278b948868dff4863bfe85ad8 (diff)
downloadlatinime-01606c385bd336042296abf37b8d43a0687e03d0.tar.gz
latinime-01606c385bd336042296abf37b8d43a0687e03d0.tar.xz
latinime-01606c385bd336042296abf37b8d43a0687e03d0.zip
Merge "Show predictions in the right cases (A58)"
Diffstat (limited to 'java/src')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index 90e4fcf89..62c7bbda7 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -1874,7 +1874,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mSuggestionsView.showAddToDictionaryHint(
suggestion, mCurrentSettings.mHintToSaveText);
} else {
- mHandler.postUpdateSuggestions();
+ // Here we just manually picked a suggestion. We should be showing the predictions!
+ mHandler.postUpdateBigramPredictions();
}
}
}
@@ -2011,7 +2012,8 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
// Don't restart suggestion yet. We'll restart if the user deletes the
// separator.
mLastComposedWord = LastComposedWord.NOT_A_COMPOSED_WORD;
- mHandler.postUpdateSuggestions();
+ // We have a separator between the word and the cursor: we should show predictions.
+ mHandler.postUpdateBigramPredictions();
}
public boolean isWordSeparator(int code) {