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

Commit c6381f7a authored by Petar Šegina's avatar Petar Šegina
Browse files

Skip smart select animation if selection result is null

Bug: 64809246
Test: bit CtsAccessibilityServiceTestCases:AccessibilityTextTraversalTest#testTextEditingActions
Change-Id: I4ef9d374e3d4a2889462459f50b673cca8970b5b
parent 3a580256
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -189,8 +189,8 @@ final class SelectionActionModeHelper {
        final Runnable onAnimationEndCallback = () -> startActionMode(result);
        // TODO do not trigger the animation if the change included only non-printable characters
        final boolean didSelectionChange =
                textView.getSelectionStart() != result.mStart
                        || textView.getSelectionEnd() != result.mEnd;
                result != null && (textView.getSelectionStart() != result.mStart
                        || textView.getSelectionEnd() != result.mEnd);

        if (!didSelectionChange) {
            onAnimationEndCallback.run();