Loading core/java/android/webkit/WebTextView.java +1 −0 Original line number Diff line number Diff line Loading @@ -370,6 +370,7 @@ import java.util.ArrayList; int candEnd = EditableInputConnection.getComposingSpanEnd(sp); imm.updateSelection(this, selStart, selEnd, candStart, candEnd); } updateCursorControllerPositions(); } @Override Loading core/java/android/webkit/WebView.java +3 −1 Original line number Diff line number Diff line Loading @@ -3477,7 +3477,9 @@ public class WebView extends AbsoluteLayout if (AUTO_REDRAW_HACK && mAutoRedraw) { invalidate(); } if (inEditingMode()) mWebTextView.onDrawSubstitute(); if (inEditingMode()) { mWebTextView.onDrawSubstitute(); } mWebViewCore.signalRepaintDone(); // paint the highlight in the end Loading core/java/android/widget/TextView.java +9 −0 Original line number Diff line number Diff line Loading @@ -4277,6 +4277,15 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener canvas.restore(); updateCursorControllerPositions(); } /** * Update the positions of the CursorControllers. Needed by WebTextView, * which does not draw. * @hide */ protected void updateCursorControllerPositions() { if (mInsertionPointCursorController != null && mInsertionPointCursorController.isShowing()) { mInsertionPointCursorController.updatePosition(); Loading Loading
core/java/android/webkit/WebTextView.java +1 −0 Original line number Diff line number Diff line Loading @@ -370,6 +370,7 @@ import java.util.ArrayList; int candEnd = EditableInputConnection.getComposingSpanEnd(sp); imm.updateSelection(this, selStart, selEnd, candStart, candEnd); } updateCursorControllerPositions(); } @Override Loading
core/java/android/webkit/WebView.java +3 −1 Original line number Diff line number Diff line Loading @@ -3477,7 +3477,9 @@ public class WebView extends AbsoluteLayout if (AUTO_REDRAW_HACK && mAutoRedraw) { invalidate(); } if (inEditingMode()) mWebTextView.onDrawSubstitute(); if (inEditingMode()) { mWebTextView.onDrawSubstitute(); } mWebViewCore.signalRepaintDone(); // paint the highlight in the end Loading
core/java/android/widget/TextView.java +9 −0 Original line number Diff line number Diff line Loading @@ -4277,6 +4277,15 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener canvas.restore(); updateCursorControllerPositions(); } /** * Update the positions of the CursorControllers. Needed by WebTextView, * which does not draw. * @hide */ protected void updateCursorControllerPositions() { if (mInsertionPointCursorController != null && mInsertionPointCursorController.isShowing()) { mInsertionPointCursorController.updatePosition(); Loading