Skip to content

Commit

Permalink
cleanup merge
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Knop committed Aug 23, 2023
1 parent 65311a0 commit b3d04c6
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/io/github/sspanak/tt9/ime/TraditionalT9.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ private void initTyping() {
validateLanguages();

resetKeyRepeat();
setSuggestions(null);
setSuggestions(null,0);
determineInputMode();
determineTextCase();
}
Expand Down Expand Up @@ -571,12 +571,12 @@ private void commitCurrentSuggestion(boolean entireSuggestion) {
textField.finishComposingText();
}

setSuggestions(null);
setSuggestions(null,0);
}


private void clearSuggestions() {
setSuggestions(null);
setSuggestions(null,0);
textField.setComposingText("");
textField.finishComposingText();
}
Expand All @@ -601,7 +601,7 @@ private void handleSuggestions() {
}

// display the word suggestions
setSuggestions(mInputMode.getSuggestions());
setSuggestions(mInputMode.getSuggestions(),0);

// flush the first suggestion, if the InputMode has requested it
if (scheduleAutoAccept(mInputMode.getAutoAcceptTimeout())) {
Expand All @@ -617,10 +617,6 @@ private void handleSuggestions() {
}


private void setSuggestions(List<String> suggestions) {
setSuggestions(suggestions, 0);
}

private void setSuggestions(List<String> suggestions, int selectedIndex) {
if (suggestionBar != null) {
suggestionBar.setSuggestions(suggestions, selectedIndex);
Expand Down

0 comments on commit b3d04c6

Please sign in to comment.