Skip to content

Commit

Permalink
[gallery] fixed generateScreen.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sanlorng committed May 21, 2024
1 parent 1e38a65 commit 3724b46
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,11 @@ class ComponentProcessor(private val logger: KSPLogger, private val codeGenerato
annotation.arguments.forEach {
when (it.name?.asString()) {
"icon" -> icon = (it.value as? String)?.ifBlank { null }
"generateScreen" -> contentData = """
{ ComponentIndexScreen(it) }
""".trimIndent()
"generateScreen" -> if (it.value as? Boolean == true) {
contentData = """
{ ComponentIndexScreen(it) }
""".trimIndent()
}
}
}
}
Expand Down

0 comments on commit 3724b46

Please sign in to comment.