Merge "[IL102] Rename a method"
This commit is contained in:
commit
9c0344801b
2 changed files with 6 additions and 8 deletions
|
@ -195,11 +195,10 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
(Pair<SuggestedWords, String>) msg.obj;
|
(Pair<SuggestedWords, String>) msg.obj;
|
||||||
// [IL]: this is the only place where the second arg is not
|
// [IL]: this is the only place where the second arg is not
|
||||||
// suggestedWords.mTypedWord.
|
// suggestedWords.mTypedWord.
|
||||||
latinIme.showSuggestionStripWithTypedWord(p.first, p.second);
|
latinIme.showSuggestionStrip(p.first, p.second);
|
||||||
} else {
|
} else {
|
||||||
final SuggestedWords suggestedWords = (SuggestedWords) msg.obj;
|
final SuggestedWords suggestedWords = (SuggestedWords) msg.obj;
|
||||||
latinIme.showSuggestionStripWithTypedWord(suggestedWords,
|
latinIme.showSuggestionStrip(suggestedWords, suggestedWords.mTypedWord);
|
||||||
suggestedWords.mTypedWord);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
latinIme.showGesturePreviewAndSuggestionStrip((SuggestedWords) msg.obj,
|
latinIme.showGesturePreviewAndSuggestionStrip((SuggestedWords) msg.obj,
|
||||||
|
@ -1274,7 +1273,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
// This method must run on the UI Thread.
|
// This method must run on the UI Thread.
|
||||||
private void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords,
|
private void showGesturePreviewAndSuggestionStrip(final SuggestedWords suggestedWords,
|
||||||
final boolean dismissGestureFloatingPreviewText) {
|
final boolean dismissGestureFloatingPreviewText) {
|
||||||
showSuggestionStripWithTypedWord(suggestedWords, suggestedWords.mTypedWord);
|
showSuggestionStrip(suggestedWords, suggestedWords.mTypedWord);
|
||||||
final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
|
final MainKeyboardView mainKeyboardView = mKeyboardSwitcher.getMainKeyboardView();
|
||||||
mainKeyboardView.showGestureFloatingPreviewText(suggestedWords);
|
mainKeyboardView.showGestureFloatingPreviewText(suggestedWords);
|
||||||
if (dismissGestureFloatingPreviewText) {
|
if (dismissGestureFloatingPreviewText) {
|
||||||
|
@ -1410,7 +1409,7 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO[IL]: Define a clean interface for this
|
// TODO[IL]: Define a clean interface for this
|
||||||
public void showSuggestionStripWithTypedWord(final SuggestedWords sourceSuggestedWords,
|
public void showSuggestionStrip(final SuggestedWords sourceSuggestedWords,
|
||||||
final String typedWord) {
|
final String typedWord) {
|
||||||
final SuggestedWords suggestedWords =
|
final SuggestedWords suggestedWords =
|
||||||
sourceSuggestedWords.isEmpty() ? SuggestedWords.EMPTY : sourceSuggestedWords;
|
sourceSuggestedWords.isEmpty() ? SuggestedWords.EMPTY : sourceSuggestedWords;
|
||||||
|
|
|
@ -1116,7 +1116,7 @@ public final class InputLogic {
|
||||||
final SuggestedWords suggestedWords = holder.get(null,
|
final SuggestedWords suggestedWords = holder.get(null,
|
||||||
Constants.GET_SUGGESTED_WORDS_TIMEOUT);
|
Constants.GET_SUGGESTED_WORDS_TIMEOUT);
|
||||||
if (suggestedWords != null) {
|
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);
|
mConnection.commitText(batchInputText.substring(0, indexOfLastSpace), 1);
|
||||||
final SuggestedWords suggestedWordsForLastWordOfPhraseGesture =
|
final SuggestedWords suggestedWordsForLastWordOfPhraseGesture =
|
||||||
suggestedWords.getSuggestedWordsForLastWordOfPhraseGesture();
|
suggestedWords.getSuggestedWordsForLastWordOfPhraseGesture();
|
||||||
mLatinIME.showSuggestionStripWithTypedWord(
|
mLatinIME.showSuggestionStrip(suggestedWordsForLastWordOfPhraseGesture,
|
||||||
suggestedWordsForLastWordOfPhraseGesture,
|
|
||||||
suggestedWordsForLastWordOfPhraseGesture.mTypedWord);
|
suggestedWordsForLastWordOfPhraseGesture.mTypedWord);
|
||||||
}
|
}
|
||||||
final String lastWord = batchInputText.substring(indexOfLastSpace);
|
final String lastWord = batchInputText.substring(indexOfLastSpace);
|
||||||
|
|
Loading…
Reference in a new issue