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

Commit 6cda1e28 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi
Browse files

Fix: End handle disappears when the selection is short.

HandleView#isVisible didn't use getHorizontalOffset; thus,
the position is always computed as if Gravity.LEFT is set.
As a result, isVisible can be wrongly false for the end
handle and the handle is dismissed.

Bug: 20480054
Change-Id: Ib3242000bb98ae28e0cb37bf5b05069754abbfc6
parent 78f895a7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3561,7 +3561,7 @@ public class Editor {
                return false;
            }

            return isPositionVisible(mPositionX + mHotspotX, mPositionY);
            return isPositionVisible(mPositionX + mHotspotX + getHorizontalOffset(), mPositionY);
        }

        public abstract int getCurrentCursorOffset();