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

Commit 4f2bc622 authored by Seigo Nonaka's avatar Seigo Nonaka
Browse files

Use getLineMax for desired text width calculation

Bug: 178205254
Test: atest TextViewTest
Change-Id: Ide45d75595571293bfa225935482d204160c6289
parent b28ad521
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -9314,7 +9314,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);