Loading core/java/android/widget/SelectionActionModeHelper.java +11 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,17 @@ 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; } /* * TODO Figure out a more robust approach for this * We have to translate all the generated rectangles by the top-left padding of the Loading Loading
core/java/android/widget/SelectionActionModeHelper.java +11 −0 Original line number Diff line number Diff line Loading @@ -200,6 +200,17 @@ 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; } /* * TODO Figure out a more robust approach for this * We have to translate all the generated rectangles by the top-left padding of the Loading