1
0
Fork 0

fixed incorrect input mode state when trying to type while the dictionary is loading

This commit is contained in:
sspanak 2024-03-26 18:47:56 +02:00 committed by Dimo Karaivanov
parent 50fedcad13
commit b323794bf7

View file

@ -263,6 +263,7 @@ public abstract class TypingHandler extends KeyPadHandler {
protected void getSuggestions() {
if (mInputMode instanceof ModePredictive && DictionaryLoader.getInstance(this).isRunning()) {
mInputMode.reset();
UI.toast(this, R.string.dictionary_loading_please_wait);
} else {
mInputMode.loadSuggestions(this::handleSuggestions, suggestionOps.getCurrent());