Loading core/java/android/widget/TextView.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -4394,7 +4394,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } mHighlightPaint.setStyle(Paint.Style.STROKE); mHighlightPaint.setStyle(Paint.Style.STROKE); highlight = mHighlightPath; highlight = mHighlightPath; drawCursor = true; drawCursor = mCursorCount > 0; } } } else { } else { if (mHighlightPathBogus) { if (mHighlightPathBogus) { Loading Loading @@ -4503,7 +4503,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } private void updateCursorsPositions() { private void updateCursorsPositions() { if (mCursorDrawableRes == 0) return; if (mCursorDrawableRes == 0) { mCursorCount = 0; return; } final int offset = getSelectionStart(); final int offset = getSelectionStart(); final int line = mLayout.getLineForOffset(offset); final int line = mLayout.getLineForOffset(offset); Loading Loading
core/java/android/widget/TextView.java +5 −2 Original line number Original line Diff line number Diff line Loading @@ -4394,7 +4394,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } mHighlightPaint.setStyle(Paint.Style.STROKE); mHighlightPaint.setStyle(Paint.Style.STROKE); highlight = mHighlightPath; highlight = mHighlightPath; drawCursor = true; drawCursor = mCursorCount > 0; } } } else { } else { if (mHighlightPathBogus) { if (mHighlightPathBogus) { Loading Loading @@ -4503,7 +4503,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener } } private void updateCursorsPositions() { private void updateCursorsPositions() { if (mCursorDrawableRes == 0) return; if (mCursorDrawableRes == 0) { mCursorCount = 0; return; } final int offset = getSelectionStart(); final int offset = getSelectionStart(); final int line = mLayout.getLineForOffset(offset); final int line = mLayout.getLineForOffset(offset); Loading