fix R class not resolved in dummy file
This commit is contained in:
committed by
Yan Zhulanow
parent
ab0c922f53
commit
a4fb49c3dd
+1
-1
@@ -148,7 +148,7 @@ abstract class AndroidUIXmlParser {
|
||||
|
||||
private fun produceKotlinProperties(kw: KotlinStringWriter, ids: Collection<AndroidWidget>): StringBuffer {
|
||||
for (id in ids) {
|
||||
val body = arrayListOf("return findViewById(R.id.${id.id}) as ${id.className}")
|
||||
val body = arrayListOf("return findViewById(0) as ${id.className}")
|
||||
kw.writeImmutableExtensionProperty(receiver = "Activity",
|
||||
name = id.id,
|
||||
retType = id.className,
|
||||
|
||||
Reference in New Issue
Block a user