Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a99dbde6 authored by George Mount's avatar George Mount
Browse files

Don't restart input in the middle of a batch.

 Bug 6854156
 setComposingText is in the middle of a batch and it was resetting
 the InputConnection. When the batch ended, it was closing a
 batch that wasn't open on the new InputConnection. The reset
 turns out not to be necessary anymore -- the LatinIME respects
 the content when setComposingText fails to change anything.

Change-Id: If3352b32ed7b3c90c8dcb3d5ff8d308e82849d85
parent 437a0fbd
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -278,7 +278,6 @@ public final class WebViewClassic implements WebViewProvider, WebViewProvider.Sc
            super.setComposingText(limitedText, newCursorPosition);
            updateSelection();
            if (limitedText != text) {
                restartInput();
                int lastCaret = start + limitedText.length();
                finishComposingText();
                setSelection(lastCaret, lastCaret);