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

Commit 03876c90 authored by Adam Powell's avatar Adam Powell
Browse files

Fix text anchor fade-out positioning

Change-Id: I5660481fb883c28c88e384be2f26e67aa854ec8e
parent ea32f94e
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -7720,19 +7720,18 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
            final int compoundPaddingRight = getCompoundPaddingRight();

            final TextView hostView = TextView.this;
            final int handleWidth = mDrawable.getIntrinsicWidth();
            final int left = 0;
            final int right = hostView.getWidth();
            final int top = 0;
            final int bottom = hostView.getHeight();

            final int clipLeft = left + compoundPaddingLeft - (int) (handleWidth * 0.75f);
            final int clipLeft = left + compoundPaddingLeft;
            final int clipTop = top + extendedPaddingTop;
            final int clipRight = right - compoundPaddingRight + (int) (handleWidth * 0.25f);
            final int clipRight = right - compoundPaddingRight;
            final int clipBottom = bottom - extendedPaddingBottom;

            return mPositionX >= clipLeft && mPositionX <= clipRight &&
                    mPositionY >= clipTop && mPositionY <= clipBottom;
            return mPositionX + mHotspotX >= clipLeft && mPositionX + mHotspotX <= clipRight &&
                    mPositionY + mHotspotY >= clipTop && mPositionY + mHotspotY <= clipBottom;
        }

        private void moveTo(int x, int y) {