Loading java/src/com/android/inputmethod/latin/LatinIME.java +2 −2 Original line number Diff line number Diff line Loading @@ -924,7 +924,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } final List<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords = SuggestedWords.Builder.getFromApplicationSpecifiedCompletions( SuggestedWords.getFromApplicationSpecifiedCompletions( applicationSpecifiedCompletions); SuggestedWords.Builder builder = new SuggestedWords.Builder(applicationSuggestedWords, false /* typedWordValid */, Loading Loading @@ -1788,7 +1788,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar previousSuggestions = SuggestedWords.EMPTY; } final ArrayList<SuggestedWords.SuggestedWordInfo> typedWordAndPreviousSuggestions = SuggestedWords.Builder.getTypedWordAndPreviousSuggestions( SuggestedWords.getTypedWordAndPreviousSuggestions( typedWord, previousSuggestions); final SuggestedWords.Builder obsoleteSuggestionsBuilder = new SuggestedWords.Builder(typedWordAndPreviousSuggestions, Loading java/src/com/android/inputmethod/latin/Suggest.java +2 −2 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ public class Suggest implements Dictionary.WordCallback { StringUtils.removeDupes(mSuggestions); return new SuggestedWords.Builder( SuggestedWords.Builder.getFromCharSequenceList(mSuggestions), SuggestedWords.getFromCharSequenceList(mSuggestions), false /* typedWordValid */, false /* hasMinimalSuggestion */, false /* allowsToBeAutoCorrected */, Loading Loading @@ -428,7 +428,7 @@ public class Suggest implements Dictionary.WordCallback { "--", false)); } } else { scoreInfoList = SuggestedWords.Builder.getFromCharSequenceList(mSuggestions); scoreInfoList = SuggestedWords.getFromCharSequenceList(mSuggestions); } boolean autoCorrectionAvailable = hasAutoCorrection; Loading java/src/com/android/inputmethod/latin/SuggestedWords.java +36 −36 Original line number Diff line number Diff line Loading @@ -98,6 +98,13 @@ public class SuggestedWords { mShouldBlockAutoCorrectionBySafetyNet = shouldBlockAutoCorrectionBySafetyNet; } public SuggestedWords build() { return new SuggestedWords(mTypedWordValid, mHasMinimalSuggestion, mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet, mAllowsToBeAutoCorrected, mSuggestedWordInfoList); } } public static ArrayList<SuggestedWordInfo> getFromCharSequenceList( final List<CharSequence> wordList) { final ArrayList<SuggestedWordInfo> result = new ArrayList<SuggestedWordInfo>(); Loading Loading @@ -136,13 +143,6 @@ public class SuggestedWords { return suggestionsList; } public SuggestedWords build() { return new SuggestedWords(mTypedWordValid, mHasMinimalSuggestion, mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet, mAllowsToBeAutoCorrected, mSuggestedWordInfoList); } } public static class SuggestedWordInfo { public final CharSequence mWord; private final CharSequence mDebugString; Loading Loading
java/src/com/android/inputmethod/latin/LatinIME.java +2 −2 Original line number Diff line number Diff line Loading @@ -924,7 +924,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar } final List<SuggestedWords.SuggestedWordInfo> applicationSuggestedWords = SuggestedWords.Builder.getFromApplicationSpecifiedCompletions( SuggestedWords.getFromApplicationSpecifiedCompletions( applicationSpecifiedCompletions); SuggestedWords.Builder builder = new SuggestedWords.Builder(applicationSuggestedWords, false /* typedWordValid */, Loading Loading @@ -1788,7 +1788,7 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar previousSuggestions = SuggestedWords.EMPTY; } final ArrayList<SuggestedWords.SuggestedWordInfo> typedWordAndPreviousSuggestions = SuggestedWords.Builder.getTypedWordAndPreviousSuggestions( SuggestedWords.getTypedWordAndPreviousSuggestions( typedWord, previousSuggestions); final SuggestedWords.Builder obsoleteSuggestionsBuilder = new SuggestedWords.Builder(typedWordAndPreviousSuggestions, Loading
java/src/com/android/inputmethod/latin/Suggest.java +2 −2 Original line number Diff line number Diff line Loading @@ -270,7 +270,7 @@ public class Suggest implements Dictionary.WordCallback { StringUtils.removeDupes(mSuggestions); return new SuggestedWords.Builder( SuggestedWords.Builder.getFromCharSequenceList(mSuggestions), SuggestedWords.getFromCharSequenceList(mSuggestions), false /* typedWordValid */, false /* hasMinimalSuggestion */, false /* allowsToBeAutoCorrected */, Loading Loading @@ -428,7 +428,7 @@ public class Suggest implements Dictionary.WordCallback { "--", false)); } } else { scoreInfoList = SuggestedWords.Builder.getFromCharSequenceList(mSuggestions); scoreInfoList = SuggestedWords.getFromCharSequenceList(mSuggestions); } boolean autoCorrectionAvailable = hasAutoCorrection; Loading
java/src/com/android/inputmethod/latin/SuggestedWords.java +36 −36 Original line number Diff line number Diff line Loading @@ -98,6 +98,13 @@ public class SuggestedWords { mShouldBlockAutoCorrectionBySafetyNet = shouldBlockAutoCorrectionBySafetyNet; } public SuggestedWords build() { return new SuggestedWords(mTypedWordValid, mHasMinimalSuggestion, mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet, mAllowsToBeAutoCorrected, mSuggestedWordInfoList); } } public static ArrayList<SuggestedWordInfo> getFromCharSequenceList( final List<CharSequence> wordList) { final ArrayList<SuggestedWordInfo> result = new ArrayList<SuggestedWordInfo>(); Loading Loading @@ -136,13 +143,6 @@ public class SuggestedWords { return suggestionsList; } public SuggestedWords build() { return new SuggestedWords(mTypedWordValid, mHasMinimalSuggestion, mIsPunctuationSuggestions, mShouldBlockAutoCorrectionBySafetyNet, mAllowsToBeAutoCorrected, mSuggestedWordInfoList); } } public static class SuggestedWordInfo { public final CharSequence mWord; private final CharSequence mDebugString; Loading