Android Extensions: Generate proper receiver for clearFindViewByIdCache() call (KT-19742)
This commit is contained in:
committed by
Yan Zhulanow
parent
f84df6381e
commit
07be1e9d10
+2
-1
@@ -103,11 +103,12 @@ abstract class AbstractAndroidExtensionsExpressionCodegenExtension : ExpressionC
|
||||
}
|
||||
|
||||
if (containerOptions.containerType == AndroidContainerType.UNKNOWN) return null
|
||||
val actualReceiver = StackValue.receiver(resolvedCall, receiver, c.codegen, null)
|
||||
|
||||
return StackValue.functionCall(Type.VOID_TYPE) {
|
||||
val bytecodeClassName = c.typeMapper.mapType(container).internalName
|
||||
|
||||
receiver.put(c.typeMapper.mapType(container), it)
|
||||
actualReceiver.put(c.typeMapper.mapType(container), it)
|
||||
it.invokevirtual(bytecodeClassName, CLEAR_CACHE_METHOD_NAME, "()V", false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user