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

Commit 30103f66 authored by Gilles Debunne's avatar Gilles Debunne Committed by Android Git Automerger
Browse files

am 735b9598: am a447eaca: Merge "Prevent a crash when maxLines is set to 0" into jb-dev

* commit '735b9598':
  Prevent a crash when maxLines is set to 0
parents 5ef59976 735b9598
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -456,6 +456,7 @@ public abstract class Layout {
        final int top = Math.max(dtop, 0);
        final int bottom = Math.min(getLineTop(getLineCount()), dbottom);

        if (top >= bottom) return TextUtils.packRangeInLong(0, -1);
        return TextUtils.packRangeInLong(getLineForVertical(top), getLineForVertical(bottom));
    }