Skip to content

Commit

Permalink
Fix textDecorationLine in Fabric Android
Browse files Browse the repository at this point in the history
Summary: This diff fixes ```textDecorationLine: 'line-through'``` in Fabric Android

Reviewed By: JoshuaGross

Differential Revision: D15989149

fbshipit-source-id: 907bb64abb247c3e32a56df7f87538dce1a08826
  • Loading branch information
mdvacca authored and facebook-github-bot committed Jun 26, 2019
1 parent 90897a9 commit 01d0cd5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 01d0cd5

Please sign in to comment.