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

Commit e26bd2c3 authored by Keisuke Kuroyanagi's avatar Keisuke Kuroyanagi Committed by Android (Google) Code Review
Browse files

Merge "Fix crash when ellipsize="start" is applied to short line."

parents 3b5adaac ed2eea1b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -811,7 +811,7 @@ public class StaticLayout extends Layout {
                float sum = 0;
                int i;

                for (i = len; i >= 0; i--) {
                for (i = len; i > 0; i--) {
                    float w = widths[i - 1 + lineStart - widthStart];

                    if (w + sum + ellipsisWidth > avail) {