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

Commit 9b5b70cf authored by Petar Šegina's avatar Petar Šegina
Browse files

Enable smart select animation for multiline scenarios

Test: manual - verify that smart select works when the selection spans
multiple lines

Change-Id: I7a8113559560dc4657c36c66c6059a44d03bf1ae
parent 0a227782
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -235,17 +235,6 @@ final class SelectionActionModeHelper {
        final List<RectF> selectionRectangles =
                convertSelectionToRectangles(layout, result.mStart, result.mEnd);

        /*
         * Do not run the Smart Select animation when there are multiple lines involved, as this
         * behavior is currently broken.
         *
         * TODO fix Smart Select Animation when the selection spans multiple lines
         */
        if (selectionRectangles.size() != 1) {
            onAnimationEndCallback.run();
            return;
        }

        final PointF touchPoint = new PointF(
                mEditor.getLastUpPositionX(),
                mEditor.getLastUpPositionY());