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

Commit 8fe9f642 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix the wrong calculation for the line bounds when showing the new magnifier."

parents 9a294d24 5b14fb5e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5107,7 +5107,7 @@ public class Editor {
                    int lineLeft = (int) layout.getLineLeft(line);
                    lineLeft += mTextView.getTotalPaddingLeft() - mTextView.getScrollX();
                    int lineRight = (int) layout.getLineRight(line);
                    lineRight -= mTextView.getTotalPaddingRight() + mTextView.getScrollX();
                    lineRight += mTextView.getTotalPaddingLeft() - mTextView.getScrollX();
                    mMagnifierAnimator.mMagnifier.setSourceHorizontalBounds(lineLeft, lineRight);
                }
                mMagnifierAnimator.show(showPosInView.x, showPosInView.y);