Skip to content

Commit 2c45dcc

Browse files
dsn5ftymarian
authored andcommitted
[CollapsingToolbarLayout] Updated default multiline hyphenation frequency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL
PiperOrigin-RevId: 368221065 (cherry picked from commit 3ad232d)
1 parent ffef9f6 commit 2c45dcc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/java/com/google/android/material/internal/StaticLayoutBuilderCompat.java

+3
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,9 @@ public StaticLayout build() throws StaticLayoutBuilderCompatException {
210210
builder.setEllipsize(ellipsize);
211211
}
212212
builder.setMaxLines(maxLines);
213+
if (maxLines > 1) {
214+
builder.setHyphenationFrequency(StaticLayout.HYPHENATION_FREQUENCY_NORMAL);
215+
}
213216
return builder.build();
214217
}
215218

0 commit comments

Comments
 (0)