aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-14 15:22:57 +0900
committerJean Chalard <jchalard@google.com>2012-03-14 15:42:14 +0900
commit7d55c891afdf7e74e505acac998a95a9ca7a9ec2 (patch)
treebcbb82ec6bc51e5d48f5f9d89139c33576eaae10 /java/src/com/android/inputmethod/latin/Suggest.java
parent5b0643f50d8c363296360f3ceaf32f7edc157141 (diff)
downloadlatinime-7d55c891afdf7e74e505acac998a95a9ca7a9ec2.tar.gz
latinime-7d55c891afdf7e74e505acac998a95a9ca7a9ec2.tar.xz
latinime-7d55c891afdf7e74e505acac998a95a9ca7a9ec2.zip
Make the Builder private
Change-Id: I2184084f4b7729c4324f8291d548bd4c4c2872a1
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Suggest.java')
-rw-r--r--java/src/com/android/inputmethod/latin/Suggest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Suggest.java b/java/src/com/android/inputmethod/latin/Suggest.java
index 236a34164..fea1b83bb 100644
--- a/java/src/com/android/inputmethod/latin/Suggest.java
+++ b/java/src/com/android/inputmethod/latin/Suggest.java
@@ -269,13 +269,13 @@ public class Suggest implements Dictionary.WordCallback {
StringUtils.removeDupes(mSuggestions);
- return new SuggestedWords.Builder(
+ return SuggestedWords.getSuggestedWords(
SuggestedWords.getFromCharSequenceList(mSuggestions),
false /* typedWordValid */,
false /* hasMinimalSuggestion */,
false /* allowsToBeAutoCorrected */,
false /* isPunctuationSuggestions */,
- false /* shouldBlockAutoCorrectionBySafetyNet */).build();
+ false /* shouldBlockAutoCorrectionBySafetyNet */);
}
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
@@ -445,12 +445,12 @@ public class Suggest implements Dictionary.WordCallback {
} else {
shouldBlockAutoCorrectionBySatefyNet = false;
}
- return new SuggestedWords.Builder(scoreInfoList,
+ return SuggestedWords.getSuggestedWords(scoreInfoList,
!allowsToBeAutoCorrected /* typedWordValid */,
autoCorrectionAvailable /* hasMinimalSuggestion */,
allowsToBeAutoCorrected /* allowsToBeAutoCorrected */,
false /* isPunctuationSuggestions */,
- shouldBlockAutoCorrectionBySatefyNet).build();
+ shouldBlockAutoCorrectionBySatefyNet);
}
@Override