mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Try to compensate for a race condition."
This commit is contained in:
commit
cb1cc0d0de
@ -789,7 +789,8 @@ public class LatinIME extends InputMethodServiceCompatWrapper implements Keyboar
|
||||
final boolean selectionChanged = (newSelStart != candidatesEnd
|
||||
|| newSelEnd != candidatesEnd) && mLastSelectionStart != newSelStart;
|
||||
final boolean candidatesCleared = candidatesStart == -1 && candidatesEnd == -1;
|
||||
if (((mComposingStringBuilder.length() > 0 && mHasUncommittedTypedChars)
|
||||
if (!mExpectingUpdateSelection
|
||||
&& ((mComposingStringBuilder.length() > 0 && mHasUncommittedTypedChars)
|
||||
|| mVoiceProxy.isVoiceInputHighlighted())
|
||||
&& (selectionChanged || candidatesCleared)) {
|
||||
if (candidatesCleared) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user