Loading core/java/android/widget/TextView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6541,7 +6541,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } private void makeBlink() { private void makeBlink() { if (!mCursorVisible) { if (!mCursorVisible || !isTextEditable()) { if (mBlink != null) { if (mBlink != null) { mBlink.removeCallbacks(mBlink); mBlink.removeCallbacks(mBlink); } } Loading Loading @@ -6932,7 +6932,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * @return True iff this TextView contains a text that can be edited. * @return True iff this TextView contains a text that can be edited. */ */ private boolean isTextEditable() { private boolean isTextEditable() { return mText instanceof Editable && onCheckIsTextEditor(); return mText instanceof Editable && onCheckIsTextEditor() && isEnabled(); } } /** /** Loading Loading
core/java/android/widget/TextView.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -6541,7 +6541,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } private void makeBlink() { private void makeBlink() { if (!mCursorVisible) { if (!mCursorVisible || !isTextEditable()) { if (mBlink != null) { if (mBlink != null) { mBlink.removeCallbacks(mBlink); mBlink.removeCallbacks(mBlink); } } Loading Loading @@ -6932,7 +6932,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener * @return True iff this TextView contains a text that can be edited. * @return True iff this TextView contains a text that can be edited. */ */ private boolean isTextEditable() { private boolean isTextEditable() { return mText instanceof Editable && onCheckIsTextEditor(); return mText instanceof Editable && onCheckIsTextEditor() && isEnabled(); } } /** /** Loading