aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/SuggestHelper.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2011-01-21 11:00:31 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-01-21 11:00:31 -0800
commit04e247be849d266a5dada2a588ffa672ec3dad84 (patch)
treebea83da2e15196a75e0cef675b32a997bd924f54 /tests/src/com/android/inputmethod/latin/SuggestHelper.java
parentd65b59f2dcedbff7c033193d31f7b736c57984d1 (diff)
parentf7b2ddb9f82487f4c2cb030abc73f2b793334b81 (diff)
downloadlatinime-04e247be849d266a5dada2a588ffa672ec3dad84.tar.gz
latinime-04e247be849d266a5dada2a588ffa672ec3dad84.tar.xz
latinime-04e247be849d266a5dada2a588ffa672ec3dad84.zip
am f7b2ddb9: am dbc61779: Fix build breakage
* commit 'f7b2ddb9f82487f4c2cb030abc73f2b793334b81': Fix build breakage
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/SuggestHelper.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/SuggestHelper.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/SuggestHelper.java b/tests/src/com/android/inputmethod/latin/SuggestHelper.java
index de898c3ea..c734f07fd 100644
--- a/tests/src/com/android/inputmethod/latin/SuggestHelper.java
+++ b/tests/src/com/android/inputmethod/latin/SuggestHelper.java
@@ -98,7 +98,7 @@ public class SuggestHelper {
boolean isDefaultCorrection(CharSequence typed, CharSequence expected) {
WordComposer word = createWordComposer(typed);
SuggestedWords suggestions = mSuggest.getSuggestions(null, word, null);
- return isDefaultSuggestion(suggestions, expected) && mSuggest.hasMinimalCorrection();
+ return isDefaultSuggestion(suggestions, expected) && mSuggest.hasAutoCorrection();
}
boolean isASuggestion(CharSequence typed, CharSequence expected) {
@@ -130,7 +130,7 @@ public class SuggestHelper {
WordComposer word = createWordComposer(typed);
getBigramSuggestions(previous, typed);
SuggestedWords suggestions = mSuggest.getSuggestions(null, word, previous);
- return isDefaultSuggestion(suggestions, expected) && mSuggest.hasMinimalCorrection();
+ return isDefaultSuggestion(suggestions, expected) && mSuggest.hasAutoCorrection();
}
boolean isASuggestion(CharSequence previous, CharSequence typed,