Skip to content

Commit

Permalink
Issue/80 (#82)
Browse files Browse the repository at this point in the history
* Check for Activity extra as well

* Adjust cast
  • Loading branch information
gustafah authored Feb 26, 2024
1 parent 8c27b74 commit a6da45a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +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 as? AppCompatActivity)?.let { getExtra(extra, extraName, it) }
?: defaultValue.invoke()
}

Expand Down

0 comments on commit a6da45a

Please sign in to comment.