From a99dbde643da3c89ea08f65a82c454b9c21fe717 Mon Sep 17 00:00:00 2001 From: George Mount Date: Wed, 1 Aug 2012 15:11:13 -0700 Subject: [PATCH] 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 --- core/java/android/webkit/WebViewClassic.java | 1 - 1 file changed, 1 deletion(-) diff --git a/core/java/android/webkit/WebViewClassic.java b/core/java/android/webkit/WebViewClassic.java index bef6db913ca29..5b8764bbae746 100644 --- a/core/java/android/webkit/WebViewClassic.java +++ b/core/java/android/webkit/WebViewClassic.java @@ -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);