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

Commit 5b14fb5e authored by Shu Chen's avatar Shu Chen
Browse files

Fix the wrong calculation for the line bounds when showing the new

magnifier.

Test: manually verified.
Bug: 148187517
Change-Id: I956aa78d7a10152300c5eb28be87f145a525093a
parent 2a8fae98
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);