diff options
author | 2014-01-28 09:43:26 +0000 | |
---|---|---|
committer | 2014-01-28 09:43:26 +0000 | |
commit | 9c0344801bd05ab56c3cb70bd32e77747a264627 (patch) | |
tree | f6aad45ba6c7970a863f25eceda25e85afe6a49c /java/src | |
parent | 67d85f663aaad5b14acf089ef0f62a5293d485c1 (diff) | |
parent | c9cc1b1de5c44d3d0cc587bd91aaa93985b9b000 (diff) | |
download | latinime-9c0344801bd05ab56c3cb70bd32e77747a264627.tar.gz latinime-9c0344801bd05ab56c3cb70bd32e77747a264627.tar.xz latinime-9c0344801bd05ab56c3cb70bd32e77747a264627.zip |
Merge "[IL102] Rename a method"
Diffstat (limited to 'java/src')
-rw-r--r-- | java/src/com/android/inputmethod/latin/LatinIME.java | 9 | ||||
-rw-r--r-- | java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java | 5 |
2 files changed, 6 insertions, 8 deletions
diff --git a/java/src/com/android/inputmethod/latin/LatinIME.java b/java/src/com/android/inputmethod/latin/LatinIME.java index c6e0fb731..e8ea5e39d 100644 --- a/java/src/com/android/inputmethod/latin/LatinIME.java +++ b/java/src/com/android/inputmethod/latin/LatinIME.java @@ -195,11 +195,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen (Pair<SuggestedWords, String>) msg.obj; // [IL]: this is the only place where the second arg is not // suggestedWords.mTypedWord. - latinIme.showSuggestionStripWithTypedWord(p.first, p.second); + latinIme.showSuggestionStrip(p.first, p.second); } else { final SuggestedWords suggestedWords = (SuggestedWords) msg.obj; - latinIme.showSuggestionStripWithTypedWord(suggestedWords, - suggestedWords.mTypedWord); + latinIme.showSuggestionStrip(suggestedWords, suggestedWords.mTypedWord); } } else { latinIme.showGesturePreviewAndSuggestionStrip((SuggestedWords) msg.obj, @@ -1274,7 +1273,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen // This method must run on the UI Thread. private void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords, final boolean dismissGestureFloatingPreviewText) { - showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.mTypedWord); + showSuggestionStrip(suggestedWords, suggestedWords.mTypedWord); final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView(); mainKeyboardView.showGestureFloatingPreviewText(suggestedWords); if (dismissGestureFloatingPreviewText) { @@ -1410,7 +1409,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen } // TODO[IL]: Define a clean interface for this - public void showSuggestionStripWithTypedWord(final SuggestedWords sourceSuggestedWords, + public void showSuggestionStrip(final SuggestedWords sourceSuggestedWords, final String typedWord) { final SuggestedWords suggestedWords = sourceSuggestedWords.isEmpty() ? SuggestedWords.EMPTY : sourceSuggestedWords; diff --git a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java index 2978aa852..bbeb74b65 100644 --- a/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java +++ b/java/src/com/android/inputmethod/latin/inputlogic/InputLogic.java @@ -1116,7 +1116,7 @@ public final class InputLogic { final SuggestedWords suggestedWords = holder.get(null, Constants.GET_SUGGESTED_WORDS_TIMEOUT); if (suggestedWords != null) { - mLatinIME.showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.mTypedWord); + mLatinIME.showSuggestionStrip(suggestedWords, suggestedWords.mTypedWord); } } @@ -1620,8 +1620,7 @@ public final class InputLogic { mConnection.commitText(batchInputText.substring(0, indexOfLastSpace), 1); final SuggestedWords suggestedWordsForLastWordOfPhraseGesture = suggestedWords.getSuggestedWordsForLastWordOfPhraseGesture(); - mLatinIME.showSuggestionStripWithTypedWord( - suggestedWordsForLastWordOfPhraseGesture, + mLatinIME.showSuggestionStrip(suggestedWordsForLastWordOfPhraseGesture, suggestedWordsForLastWordOfPhraseGesture.mTypedWord); } final String lastWord = batchInputText.substring(indexOfLastSpace); |