mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Remove unsupported values for android_hyphenationFrequency
Summary: hyphenationStrategy must be one of one of Layout#HYPHENATION_FREQUENCY_NONE, Layout#HYPHENATION_FREQUENCY_NORMAL, Layout#HYPHENATION_FREQUENCY_FULL: (https://developer.android.com/reference/android/widget/TextView#setHyphenationFrequency(int)) Thus "high" and "balanced" are not only redundant, but actually don't do what the value indicates - Layout#BREAK_STRATEGY_BALANCED (constant value: 2) and Layout#BREAK_STRATEGY_HIGH_QUALITY (constant value: 1) are only meant to be used for android:breakStrategy Changelog: [Android][Changed] - Remove `"high"` and `"balanced"` as values for `android_hyphenationFrequency` on `Text` Reviewed By: JoshuaGross Differential Revision: D30531096 fbshipit-source-id: 1a0b6e733bb21ce6b2f104a2025a79c16de3cfea
This commit is contained in:
committed by
Facebook GitHub Bot
parent
8f7e23ae44
commit
a0d30b848a
-4
@@ -110,10 +110,6 @@ public abstract class ReactTextAnchorViewManager<T extends View, C extends React
|
||||
view.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NONE);
|
||||
} else if (frequency.equals("full")) {
|
||||
view.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_FULL);
|
||||
} else if (frequency.equals("balanced")) {
|
||||
view.setHyphenationFrequency(Layout.BREAK_STRATEGY_BALANCED);
|
||||
} else if (frequency.equals("high")) {
|
||||
view.setHyphenationFrequency(Layout.BREAK_STRATEGY_HIGH_QUALITY);
|
||||
} else if (frequency.equals("normal")) {
|
||||
view.setHyphenationFrequency(Layout.HYPHENATION_FREQUENCY_NORMAL);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user