diff options
author | 2012-03-14 15:33:47 +0900 | |
---|---|---|
committer | 2012-03-14 15:42:22 +0900 | |
commit | 33cc82537466fbc02c1aff0825c975a94c04c464 (patch) | |
tree | 18dff5f6f0232f4ac4cee322a58ccd71a5f429e8 /java | |
parent | 7d55c891afdf7e74e505acac998a95a9ca7a9ec2 (diff) | |
download | latinime-33cc82537466fbc02c1aff0825c975a94c04c464.tar.gz latinime-33cc82537466fbc02c1aff0825c975a94c04c464.tar.xz latinime-33cc82537466fbc02c1aff0825c975a94c04c464.zip |
Match the constructor of SuggestedWords to the Builder call.
We have to match one way or another, and the argument order to the
Builder call is more logical.
Change-Id: Iac7c3a351c2687cb294d6a4924fd9cb20ca95177
Diffstat (limited to 'java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/SuggestedWords.java | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index 758b81e94..1bc02b52b 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -24,8 +24,8 @@ import java.util.HashSet; import java.util.List; public class SuggestedWords { - public static final SuggestedWords EMPTY = new SuggestedWords(false, false, false, false, - false, Collections.<SuggestedWordInfo>emptyList()); + public static final SuggestedWords EMPTY = new SuggestedWords( + Collections.<SuggestedWordInfo>emptyList(), false, false, false, false, false); public final boolean mTypedWordValid; public final boolean mHasAutoCorrectionCandidate; @@ -33,18 +33,18 @@ public class SuggestedWords { public final boolean mAllowsToBeAutoCorrected; private final List<SuggestedWordInfo> mSuggestedWordInfoList; - private SuggestedWords(final boolean typedWordValid, + private SuggestedWords(final List<SuggestedWordInfo> suggestedWordInfoList, + final boolean typedWordValid, final boolean hasAutoCorrectionCandidate, - final boolean isPunctuationSuggestions, - final boolean shouldBlockAutoCorrectionBySafetyNet, final boolean allowsToBeAutoCorrected, - final List<SuggestedWordInfo> suggestedWordInfoList) { + final boolean isPunctuationSuggestions, + final boolean shouldBlockAutoCorrectionBySafetyNet) { + mSuggestedWordInfoList = suggestedWordInfoList; mTypedWordValid = typedWordValid; mHasAutoCorrectionCandidate = hasAutoCorrectionCandidate && !shouldBlockAutoCorrectionBySafetyNet; - mIsPunctuationSuggestions = isPunctuationSuggestions; mAllowsToBeAutoCorrected = allowsToBeAutoCorrected; - mSuggestedWordInfoList = suggestedWordInfoList; + mIsPunctuationSuggestions = isPunctuationSuggestions; } public int size() { @@ -99,9 +99,9 @@ public class SuggestedWords { } public SuggestedWords build() { - return new SuggestedWords(mTypedWordValid, mHasMinimalSuggestion, - mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet, - mAllowsToBeAutoCorrected, mSuggestedWordInfoList); + return new SuggestedWords(mSuggestedWordInfoList, mTypedWordValid, + mHasMinimalSuggestion, mAllowsToBeAutoCorrected, + mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet); } } |