mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Fix a bug where words disappear on inserting separators"
This commit is contained in:
commit
d104a7aac8
@ -1414,7 +1414,9 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||||||
if (mDeleteCount > DELETE_ACCELERATE_AT) {
|
if (mDeleteCount > DELETE_ACCELERATE_AT) {
|
||||||
ic.deleteSurroundingText(1, 0);
|
ic.deleteSurroundingText(1, 0);
|
||||||
}
|
}
|
||||||
restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic);
|
if (isSuggestionsRequested()) {
|
||||||
|
restartSuggestionsOnWordBeforeCursorIfAtEndOfWord(ic);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1706,6 +1708,10 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
|||||||
// Check if we have a suggestion engine attached.
|
// Check if we have a suggestion engine attached.
|
||||||
if ((mSuggest == null || !isSuggestionsRequested())
|
if ((mSuggest == null || !isSuggestionsRequested())
|
||||||
&& !mVoiceProxy.isVoiceInputHighlighted()) {
|
&& !mVoiceProxy.isVoiceInputHighlighted()) {
|
||||||
|
if (mWordComposer.isComposingWord()) {
|
||||||
|
Log.w(TAG, "Called updateSuggestions but suggestions were not requested!");
|
||||||
|
mWordComposer.setAutoCorrection(mWordComposer.getTypedWord());
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user