From e91aea5709e153dcd957488954f71c64432dc316 Mon Sep 17 00:00:00 2001 From: Ovsyannikov_M Date: Sat, 23 Dec 2023 21:39:44 +0300 Subject: [PATCH] ISSUE-405: fix static analysis --- .../java/com/kaspresso/components/pageobjectcodegen/View.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/page-object-code-gen/src/main/java/com/kaspresso/components/pageobjectcodegen/View.kt b/page-object-code-gen/src/main/java/com/kaspresso/components/pageobjectcodegen/View.kt index 100123787..3f2e0a230 100644 --- a/page-object-code-gen/src/main/java/com/kaspresso/components/pageobjectcodegen/View.kt +++ b/page-object-code-gen/src/main/java/com/kaspresso/components/pageobjectcodegen/View.kt @@ -19,11 +19,11 @@ data class RecyclerView( ) : BaseView { val childClassNames = List(childView.size) { if (it == 0) "RecyclerViewItem" else "RecyclerViewItem$it" } - + private val amountOfTabs = 7 override fun toKaspressoExpression(): String { return """val ${resourceId.toCamelCase()} = KRecyclerView( builder = { withId(R.id.$resourceId) }, - itemTypeBuilder = { ${childClassNames.joinToString(separator = ",\n" + "\t".repeat(7)) { "itemType(::$it)" }} }, + itemTypeBuilder = { ${childClassNames.joinToString(separator = ",\n" + "\t".repeat(amountOfTabs)) { "itemType(::$it)" }} }, )""" } }