Android Extensions: Allow LayoutContainers in inner/local classes and objects
This commit is contained in:
committed by
Yan Zhulanow
parent
07be1e9d10
commit
7b4e24a454
+1
-1
@@ -154,7 +154,7 @@ abstract class AbstractAndroidExtensionsExpressionCodegenExtension : ExpressionC
|
||||
val targetClass = codegen.myClass as? KtClass ?: return
|
||||
|
||||
val container = codegen.descriptor
|
||||
if (container.kind != ClassKind.CLASS || container.isInner || DescriptorUtils.isLocal(container)) return
|
||||
if (container.kind != ClassKind.CLASS && container.kind != ClassKind.OBJECT) return
|
||||
|
||||
val containerOptions = ContainerOptionsProxy.create(container)
|
||||
if (containerOptions.getCacheOrDefault(targetClass) == NO_CACHE) return
|
||||
|
||||
Reference in New Issue
Block a user