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

Commit 5e81476b authored by Justin Ghan's avatar Justin Ghan Committed by Android (Google) Code Review
Browse files

Merge "Fix CursorAnchorInfo insertion marker location when cursor is clamped" into udc-qpr-dev

parents f2795971 e9d561e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -14051,7 +14051,8 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                            selectionStart, OffsetMapping.MAP_STRATEGY_CURSOR);
                    final int line = layout.getLineForOffset(offsetTransformed);
                    final float insertionMarkerX =
                            layout.getPrimaryHorizontal(offsetTransformed)
                            layout.getPrimaryHorizontal(
                                            offsetTransformed, layout.shouldClampCursor(line))
                                    + viewportToContentHorizontalOffset;
                    final float insertionMarkerTop = layout.getLineTop(line)
                            + viewportToContentVerticalOffset;