Skip to content

Commit d2a58b8

Browse files
zielinskimzfacebook-github-bot
authored andcommitted
Add missing DCG plugin in litho-rendercore-text module (#1056)
Summary: Pull Request resolved: #1056 As per title Reviewed By: adityasharat Differential Revision: D75778184 fbshipit-source-id: d1628aa4e554cbf6d706105225acec768bf537eb
1 parent 2097d21 commit d2a58b8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

litho-rendercore-sample/src/main/java/com/facebook/rendercore/sample/layoutadapter/GsonLayoutAdapter.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ internal object TextAdapter {
117117
this.entrySet().forEach {
118118
when (it.key) {
119119
"textSize" -> style.textSize = it.value.asInt
120-
"textColor" -> style.setTextColor(Color.parseColor(it.value.asString))
120+
"textColor" -> style.textColor = Color.parseColor(it.value.asString)
121121
"textAlign" -> style.alignment = it.value.getTextAlignment()
122122
}
123123
}

litho-rendercore-text/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
apply plugin: 'com.android.library'
1818
apply plugin: 'kotlin-android'
19+
apply plugin: 'com.facebook.kotlin.compilerplugins.dataclassgenerate'
1920

2021
android {
2122
compileSdkVersion rootProject.compileSdkVersion

0 commit comments

Comments
 (0)