Loading core/java/android/widget/Editor.java +1 −1 Original line number Diff line number Diff line Loading @@ -6454,7 +6454,7 @@ public class Editor { @VisibleForTesting public int getCurrentLineAdjustedForSlop(Layout layout, int prevLine, float y) { final int trueLine = mTextView.getLineAtCoordinate(y); if (layout == null || prevLine > layout.getLineCount() if (layout == null || prevLine >= layout.getLineCount() || layout.getLineCount() <= 0 || prevLine < 0) { // Invalid parameters, just return whatever line is at y. return trueLine; Loading Loading
core/java/android/widget/Editor.java +1 −1 Original line number Diff line number Diff line Loading @@ -6454,7 +6454,7 @@ public class Editor { @VisibleForTesting public int getCurrentLineAdjustedForSlop(Layout layout, int prevLine, float y) { final int trueLine = mTextView.getLineAtCoordinate(y); if (layout == null || prevLine > layout.getLineCount() if (layout == null || prevLine >= layout.getLineCount() || layout.getLineCount() <= 0 || prevLine < 0) { // Invalid parameters, just return whatever line is at y. return trueLine; Loading