Skip to content

Commit

Permalink
[CollapsingToolbarLayout] Updated default multiline hyphenation frequ…
Browse files Browse the repository at this point in the history
…ency to StaticLayout.HYPHENATION_FREQUENCY_NORMAL

PiperOrigin-RevId: 368221065
  • Loading branch information
dsn5ft committed Apr 13, 2021
1 parent 891d009 commit 3ad232d
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -210,6 +210,9 @@ public StaticLayout build() throws StaticLayoutBuilderCompatException {
builder.setEllipsize(ellipsize);
}
builder.setMaxLines(maxLines);
if (maxLines > 1) {
builder.setHyphenationFrequency(StaticLayout.HYPHENATION_FREQUENCY_NORMAL);
}
return builder.build();
}

Expand Down

0 comments on commit 3ad232d

Please sign in to comment.