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

Commit c975213d authored by Petar Šegina's avatar Petar Šegina Committed by Android (Google) Code Review
Browse files

Merge "Enable smart select animation for multiline scenarios"

parents 02b34572 9b5b70cf
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -235,17 +235,6 @@ public 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());