diff --git a/toolkit/delegate/src/main/kotlin/br/com/arch/toolkit/delegate/ExtraProviderDelegate.kt b/toolkit/delegate/src/main/kotlin/br/com/arch/toolkit/delegate/ExtraProviderDelegate.kt index 069bd145..1a341564 100644 --- a/toolkit/delegate/src/main/kotlin/br/com/arch/toolkit/delegate/ExtraProviderDelegate.kt +++ b/toolkit/delegate/src/main/kotlin/br/com/arch/toolkit/delegate/ExtraProviderDelegate.kt @@ -35,7 +35,7 @@ class ExtraProviderDelegate( ExtraType.QUERY -> getQueryParameter(extra, extraName, thisRef) ?: defaultValue.invoke() ExtraType.AUTO -> getExtra(extra, extraName, thisRef) ?: (if (extra is String?) getQueryParameter(extra, extraName, thisRef) else null) - ?: thisRef.activity?.let { getExtra(extra, extraName, it) } + ?: (thisRef.activity as? AppCompatActivity)?.let { getExtra(extra, extraName, it) } ?: defaultValue.invoke() }