aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/LatinIME.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2012-03-13 19:40:24 +0900
committerJean Chalard <jchalard@google.com>2012-03-13 19:53:38 +0900
commitb5eeb724fc98bb7169683539027d9ba54ffb8b14 (patch)
tree1d122f69f54e0a0a7f885dc2cf4cd6aa12ed81a7 /java/src/com/android/inputmethod/latin/LatinIME.java
parentc60fea852d0eaaed7f212dbab0af500d07188c69 (diff)
downloadlatinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.tar.gz
latinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.tar.xz
latinime-b5eeb724fc98bb7169683539027d9ba54ffb8b14.zip
Make some more Builder attributes final.
Change-Id: I3132b7fe4ee97c566736bfc21c3783cfc79fc7ff
Diffstat (limited to 'java/src/com/android/inputmethod/latin/LatinIME.java')
-rw-r--r--java/src/com/android/inputmethod/latin/LatinIME.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java
index bd502a030..2bbda7848 100644
--- a/java/src/com/android/inputmethod/latin/LatinIME.java
+++ b/java/src/com/android/inputmethod/latin/LatinIME.java
@@ -926,7 +926,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
final List<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords =
SuggestedWords.Builder.getFromApplicationSpecifiedCompletions(
applicationSpecifiedCompletions);
- SuggestedWords.Builder builder = new SuggestedWords.Builder(applicationSuggestedWords)
+ SuggestedWords.Builder builder = new SuggestedWords.Builder(applicationSuggestedWords,
+ false /* allowsToBeAutoCorrected */,
+ false /* isPunctuationSuggestions */)
.setTypedWordValid(false)
.setHasMinimalSuggestion(false);
// When in fullscreen mode, show completions generated by the application
@@ -1786,9 +1788,11 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
SuggestedWords.Builder.getTypedWordAndPreviousSuggestions(
typedWord, previousSuggestions);
final SuggestedWords.Builder obsoleteSuggestionsBuilder =
- new SuggestedWords.Builder(typedWordAndPreviousSuggestions)
- .setTypedWordValid(false)
- .setHasMinimalSuggestion(false);
+ new SuggestedWords.Builder(typedWordAndPreviousSuggestions,
+ false /* allowsToBeAutoCorrected */,
+ false /* isPunctuationSuggestions */)
+ .setTypedWordValid(false)
+ .setHasMinimalSuggestion(false);
showSuggestions(obsoleteSuggestionsBuilder.build(), typedWord);
}