Remove a useless parameter (A91A)

Change-Id: I1d1758048649ef337875a5141d825569af7ad38c
This commit is contained in:
Jean Chalard 2012-07-10 19:31:36 +09:00
parent f5943153ad
commit 5e573a1f0a
2 changed files with 3 additions and 5 deletions

View file

@ -1696,7 +1696,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
mWordComposer.isComposingWord() ? 2 : 1); mWordComposer.isComposingWord() ? 2 : 1);
SuggestedWords suggestedWords = mSuggest.getSuggestedWords(mWordComposer, SuggestedWords suggestedWords = mSuggest.getSuggestedWords(mWordComposer,
prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(), prevWord, mKeyboardSwitcher.getKeyboard().getProximityInfo(),
mCurrentSettings.mCorrectionEnabled, !mWordComposer.isComposingWord()); mCurrentSettings.mCorrectionEnabled);
suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords); suggestedWords = maybeRetrieveOlderSuggestions(typedWord, suggestedWords);
if (null != suggestedWords && suggestedWords.size() > 0) { if (null != suggestedWords && suggestedWords.size() > 0) {

View file

@ -156,10 +156,8 @@ public class Suggest {
// TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder // TODO: cleanup dictionaries looking up and suggestions building with SuggestedWords.Builder
public SuggestedWords getSuggestedWords( public SuggestedWords getSuggestedWords(
final WordComposer wordComposer, CharSequence prevWordForBigram, final WordComposer wordComposer, CharSequence prevWordForBigram,
final ProximityInfo proximityInfo, final boolean isCorrectionEnabled, final ProximityInfo proximityInfo, final boolean isCorrectionEnabled) {
// TODO: remove isPrediction parameter. It effectively means the same thing final boolean isPrediction = !wordComposer.isComposingWord();
// as wordComposer.size() <= 1
final boolean isPrediction) {
LatinImeLogger.onStartSuggestion(prevWordForBigram); LatinImeLogger.onStartSuggestion(prevWordForBigram);
final boolean isFirstCharCapitalized = final boolean isFirstCharCapitalized =
!isPrediction && wordComposer.isFirstCharCapitalized(); !isPrediction && wordComposer.isFirstCharCapitalized();