Fix incorrect hyphenation frequency in TextLayoutManagerMapBuffer

Summary: Changelog: [Android][Fixed] Fixed text measurement issue related to hyphenation frequency

Reviewed By: makovkastar

Differential Revision: D44093758

fbshipit-source-id: 71b7b6cd862586b673a49f5e6efaf9aeeb25c6e1
This commit is contained in:
Pieter De Baets 2023-03-15 11:35:51 -07:00 коммит произвёл Facebook GitHub Bot
Родитель b07cf33279
Коммит 01e7ff5513
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -377,7 +377,7 @@ public class TextLayoutManagerMapBuffer {
? paragraphAttributes.getBoolean(PA_KEY_INCLUDE_FONT_PADDING)
: DEFAULT_INCLUDE_FONT_PADDING;
int hyphenationFrequency =
TextAttributeProps.getTextBreakStrategy(
TextAttributeProps.getHyphenationFrequency(
paragraphAttributes.getString(PA_KEY_HYPHENATION_FREQUENCY));
if (text == null) {