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

This commit is contained in:
Long Ling
2019-11-19 22:49:55 +00:00
committed by Android (Google) Code Review

View File

@@ -2584,8 +2584,7 @@ public class Editor {
* @return True when the TextView isFocused and has a valid zero-length selection (cursor).
*/
private boolean shouldBlink() {
if (!isCursorVisible() || !mTextView.isFocused() ||
!mTextView.isVisibleToUser()) return false;
if (!isCursorVisible() || !mTextView.isFocused()) return false;
final int start = mTextView.getSelectionStart();
if (start < 0) return false;