Skip to content

Commit

Permalink
Adjust cast
Browse files Browse the repository at this point in the history
  • Loading branch information
gustafah committed Feb 20, 2024
1 parent b9354b8 commit 351ba60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class ExtraProviderDelegate<T>(
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()
}

Expand Down

0 comments on commit 351ba60

Please sign in to comment.