aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorTadashi G. Takaoka <takaoka@google.com>2010-12-11 17:06:24 +0900
committerTadashi G. Takaoka <takaoka@google.com>2010-12-12 21:55:00 +0900
commit1b1f7f907f6c7d6e849c88ca06c3608bc84d7c5f (patch)
tree79c584c76142037b9f78fb2eb692caae8e3a674f /java/src/com/android/inputmethod/latin/Suggest.java
parent3ef38b2907a8b162bb98a5059a296f0541ae7ef2 (diff)
downloadlatinime-1b1f7f907f6c7d6e849c88ca06c3608bc84d7c5f.tar.gz
latinime-1b1f7f907f6c7d6e849c88ca06c3608bc84d7c5f.tar.xz
latinime-1b1f7f907f6c7d6e849c88ca06c3608bc84d7c5f.zip
Cleanup unused string resources
This change also renames some "completion" to "correction". Change-Id: I156dd7ccafe99a632721f20769d5f0ea5915a564
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 237d7cb67..77e0a3dde 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -81,7 +81,7 @@ public class Suggest implements Dictionary.WordCallback {
private boolean mAutoTextEnabled;
- private double mAutoCompleteThreshold;
+ private double mAutoCorrectionThreshold;
private int[] mPriorities = new int[mPrefMaxSuggestions];
private int[] mBigramPriorities = new int[PREF_MAX_BIGRAMS];
@@ -164,8 +164,8 @@ public class Suggest implements Dictionary.WordCallback {
mUserBigramDictionary = userBigramDictionary;
}
- public void setAutoCompleteThreshold(double threshold) {
- mAutoCompleteThreshold = threshold;
+ public void setAutoCorrectionThreshold(double threshold) {
+ mAutoCorrectionThreshold = threshold;
}
/**
@@ -294,9 +294,9 @@ public class Suggest implements Dictionary.WordCallback {
if (LatinImeLogger.sDBG) {
Log.d(TAG, "Normalized " + mOriginalWord + "," + mSuggestions.get(0) + ","
+ mPriorities[0] + normalizedScore
- + "(" + mAutoCompleteThreshold + ")");
+ + "(" + mAutoCorrectionThreshold + ")");
}
- if (normalizedScore >= mAutoCompleteThreshold) {
+ if (normalizedScore >= mAutoCorrectionThreshold) {
mHaveCorrection = true;
}
}