From b3d04c61f5374edf305070c2594b5d0687606c4c Mon Sep 17 00:00:00 2001 From: Alex Knop Date: Wed, 23 Aug 2023 10:32:19 -0400 Subject: [PATCH] cleanup merge --- src/io/github/sspanak/tt9/ime/TraditionalT9.java | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/io/github/sspanak/tt9/ime/TraditionalT9.java b/src/io/github/sspanak/tt9/ime/TraditionalT9.java index 8fce3effc..f732c2b0b 100644 --- a/src/io/github/sspanak/tt9/ime/TraditionalT9.java +++ b/src/io/github/sspanak/tt9/ime/TraditionalT9.java @@ -169,7 +169,7 @@ private void initTyping() { validateLanguages(); resetKeyRepeat(); - setSuggestions(null); + setSuggestions(null,0); determineInputMode(); determineTextCase(); } @@ -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(); } @@ -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())) { @@ -617,10 +617,6 @@ private void handleSuggestions() { } - private void setSuggestions(List suggestions) { - setSuggestions(suggestions, 0); - } - private void setSuggestions(List suggestions, int selectedIndex) { if (suggestionBar != null) { suggestionBar.setSuggestions(suggestions, selectedIndex);