From 01e7ff5513e2f5ca6f03bb8ac1b9a1a31612cc9a Mon Sep 17 00:00:00 2001 From: Pieter De Baets Date: Wed, 15 Mar 2023 11:35:51 -0700 Subject: [PATCH] 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 --- .../facebook/react/views/text/TextLayoutManagerMapBuffer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java index 9ff17c4359fbe1..3de72a880775ef 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextLayoutManagerMapBuffer.java @@ -377,7 +377,7 @@ public static long measureText( ? 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) {