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

Commit f36829cf authored by Seigo Nonaka's avatar Seigo Nonaka Committed by Android (Google) Code Review
Browse files

Merge "Use getLineMax for desired text width calculation" into sc-dev

parents cb320bf9 4f2bc622
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9317,7 +9317,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }
        for (int i = 0; i < n; i++) {
            max = Math.max(max, layout.getLineWidth(i));
            max = Math.max(max, layout.getLineMax(i));
        }
        return (int) Math.ceil(max);