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

Commit dc32a998 authored by Gilles Debunne's avatar Gilles Debunne
Browse files

Blinking runnable is created only if text is editable. DO NOT MERGE.

Change-Id: If85acc73cfa12b6da23d60459a746e1aef51d3aa
parent ca36d863
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -6523,7 +6523,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }

    private void makeBlink() {
        if (!mCursorVisible) {
        if (!mCursorVisible || !isTextEditable()) {
            if (mBlink != null) {
                mBlink.removeCallbacks(mBlink);
            }
@@ -6912,7 +6912,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
     * @return True iff this TextView contains a text that can be edited.
     */
    private boolean isTextEditable() {
        return mText instanceof Editable && onCheckIsTextEditor();
        return mText instanceof Editable && onCheckIsTextEditor() && isEnabled();
    }

    /**