diff options
author | 2012-05-16 05:04:46 -0700 | |
---|---|---|
committer | 2012-05-16 05:04:46 -0700 | |
commit | ac067f2db73f8c15819edf765f33bd340eea522f (patch) | |
tree | 1fcad82789aa1837e1faba877cdca58a70a4e196 /java/src/com/android/inputmethod/latin/Suggest.java | |
parent | 080bc96786af391d508d2d2f91a407db71345539 (diff) | |
parent | 0028ed3627ff4f37a62a80f3b2c857e373cd5090 (diff) | |
download | latinime-ac067f2db73f8c15819edf765f33bd340eea522f.tar.gz latinime-ac067f2db73f8c15819edf765f33bd340eea522f.tar.xz latinime-ac067f2db73f8c15819edf765f33bd340eea522f.zip |
am 0028ed36: Use "float" instead of "double"
* commit '0028ed3627ff4f37a62a80f3b2c857e373cd5090':
Use "float" instead of "double"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Suggest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java index d7cd0575b..9e478fab4 100644 --- a/java/src/com/android/inputmethod/latin/Suggest.java +++ b/java/src/com/android/inputmethod/latin/Suggest.java @@ -77,7 +77,7 @@ public class Suggest implements Dictionary.WordCallback { private static final int PREF_MAX_BIGRAMS = 60; - private double mAutoCorrectionThreshold; + private float mAutoCorrectionThreshold; private ArrayList<SuggestedWordInfo> mSuggestions = new ArrayList<SuggestedWordInfo>(); private ArrayList<SuggestedWordInfo> mBigramSuggestions = new ArrayList<SuggestedWordInfo>(); @@ -185,7 +185,7 @@ public class Suggest implements Dictionary.WordCallback { userHistoryDictionary); } - public void setAutoCorrectionThreshold(double threshold) { + public void setAutoCorrectionThreshold(float threshold) { mAutoCorrectionThreshold = threshold; } @@ -416,7 +416,7 @@ public class Suggest implements Dictionary.WordCallback { // than i because we added the typed word to mSuggestions without touching mScores. for (int i = 0; i < suggestionsSize - 1; ++i) { final SuggestedWordInfo cur = suggestions.get(i + 1); - final double normalizedScore = BinaryDictionary.calcNormalizedScore( + final float normalizedScore = BinaryDictionary.calcNormalizedScore( typedWord, cur.toString(), cur.mScore); final String scoreInfoString; if (normalizedScore > 0) { |