From 01d0cd540c90a229429f443cbaa6cbbd7d0aa542 Mon Sep 17 00:00:00 2001 From: David Vacca Date: Tue, 25 Jun 2019 19:54:57 -0700 Subject: [PATCH] Fix textDecorationLine in Fabric Android Summary: This diff fixes ```textDecorationLine: 'line-through'``` in Fabric Android Reviewed By: JoshuaGross Differential Revision: D15989149 fbshipit-source-id: 907bb64abb247c3e32a56df7f87538dce1a08826 --- .../com/facebook/react/views/text/TextAttributeProps.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java index e23961d75d8b44..d4d81cbfaa686a 100644 --- a/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java +++ b/ReactAndroid/src/main/java/com/facebook/react/views/text/TextAttributeProps.java @@ -306,10 +306,10 @@ public void setTextDecorationLine(@Nullable String textDecorationLineString) { mIsUnderlineTextDecorationSet = false; mIsLineThroughTextDecorationSet = false; if (textDecorationLineString != null) { - for (String textDecorationLineSubString : textDecorationLineString.split(" ")) { + for (String textDecorationLineSubString : textDecorationLineString.split("-")) { if ("underline".equals(textDecorationLineSubString)) { mIsUnderlineTextDecorationSet = true; - } else if ("line-through".equals(textDecorationLineSubString)) { + } else if ("strikethrough".equals(textDecorationLineSubString)) { mIsLineThroughTextDecorationSet = true; } }