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

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

Cursors correctly displayed with legacy theme.

Bug 3482848

Change-Id: Ic2eda961a8bb5e865bc638106124d00a5a7b4b21
parent b384fac0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -4394,7 +4394,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
                        }
                        mHighlightPaint.setStyle(Paint.Style.STROKE);
                        highlight = mHighlightPath;
                        drawCursor = true;
                        drawCursor = mCursorCount > 0;
                    }
                } else {
                    if (mHighlightPathBogus) {
@@ -4503,7 +4503,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
    }

    private void updateCursorsPositions() {
        if (mCursorDrawableRes == 0) return;
        if (mCursorDrawableRes == 0) {
            mCursorCount = 0;
            return; 
        }

        final int offset = getSelectionStart();
        final int line = mLayout.getLineForOffset(offset);