diff options
| author | Leon Scroggins <scroggo@google.com> | 2010-11-01 15:45:37 -0400 |
|---|---|---|
| committer | Leon Scroggins <scroggo@google.com> | 2010-11-01 15:45:37 -0400 |
| commit | 5642625cfb065de38440408c1e2e8a8c6f8fa32d (patch) | |
| tree | 2b59ae6da7ee4cac4ef8265593c5ba2145fa1733 /core/java/android/widget/TextView.java | |
| parent | 70a2c15ecfd4e8cd8581699d5df8a219c7d5cdb1 (diff) | |
Update insertion handler for WebTextView.
Bug:3152629
Change-Id: If2a33eb5456493fb9b3b2c54fcc4f5348fe129e1
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index d719783d075e..b30b6b1d3841 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -4162,6 +4162,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(); |
