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

Commit 6fef46e4 authored by Long Ling's avatar Long Ling
Browse files

Editor: do not blink when invisible to user

Bug: 140945114
Change-Id: Ie9f3c872530d6c683782472fe019f2914de1abc1
parent 5af2a038
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;