mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
[IL89] Inline a function
We will then refactor the contents of showSuggestionStripWithTypedWord Bug: 8636060 Change-Id: I8a2a0d50b79fcc7ad21b01a0060b9fa7e4c1bdd6
This commit is contained in:
parent
ca819178a1
commit
33ff321d6c
@ -1329,12 +1329,6 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO[IL]: Define a clear interface for this
|
|
||||||
public void clearSuggestionStrip() {
|
|
||||||
setSuggestedWords(SuggestedWords.EMPTY);
|
|
||||||
setAutoCorrectionIndicator(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO[IL]: Define a clear interface for this
|
// TODO[IL]: Define a clear interface for this
|
||||||
public void setSuggestedWords(final SuggestedWords words) {
|
public void setSuggestedWords(final SuggestedWords words) {
|
||||||
mInputLogic.mSuggestedWords = words;
|
mInputLogic.mSuggestedWords = words;
|
||||||
@ -1432,10 +1426,12 @@ public class LatinIME extends InputMethodService implements KeyboardActionListen
|
|||||||
|
|
||||||
private void showSuggestionStripWithTypedWord(final SuggestedWords suggestedWords,
|
private void showSuggestionStripWithTypedWord(final SuggestedWords suggestedWords,
|
||||||
final String typedWord) {
|
final String typedWord) {
|
||||||
|
// TODO: refactor this
|
||||||
if (suggestedWords.isEmpty()) {
|
if (suggestedWords.isEmpty()) {
|
||||||
// No auto-correction is available, clear the cached values.
|
// No auto-correction is available, clear the cached values.
|
||||||
AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord);
|
AccessibilityUtils.getInstance().setAutoCorrection(SuggestedWords.EMPTY, typedWord);
|
||||||
clearSuggestionStrip();
|
setSuggestedWords(SuggestedWords.EMPTY);
|
||||||
|
setAutoCorrectionIndicator(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
final String autoCorrection;
|
final String autoCorrection;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user