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

Commit 503bdc29 authored by Long Ling's avatar Long Ling Committed by Android (Google) Code Review
Browse files

Merge "Editor: do not blink when invisible to user"

parents 38a0b536 6fef46e4
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2561,7 +2561,8 @@ public class Editor {
     * @return True when the TextView isFocused and has a valid zero-length selection (cursor).
     */
    private boolean shouldBlink() {
        if (!isCursorVisible() || !mTextView.isFocused()) return false;
        if (!isCursorVisible() || !mTextView.isFocused() ||
                !mTextView.isVisibleToUser()) return false;

        final int start = mTextView.getSelectionStart();
        if (start < 0) return false;