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

Commit 26595a7f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cheaper crash check post smart selection animation"

parents 140ac5b2 6849bd32
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -284,9 +284,9 @@ public final class SelectionActionModeHelper {
            @Nullable SelectionResult result) {
        final Layout layout = mTextView.getLayout();

        final String originalText = getText(mTextView).toString();
        final Runnable onAnimationEndCallback = () -> {
            if (TextUtils.equals(getText(mTextView), originalText)) {
            if (result.mStart >= 0 && result.mEnd <= getText(mTextView).length()
                    && result.mStart <= result.mEnd) {
                startSelectionActionMode(result);
            }
        };