this discussion was here yesterday, use !! in your...
# android
d
this discussion was here yesterday, use !! in your fragment
t
thanks, sorry for duplicate
d
you can create extension property
Copy code
val Fragment.requiredContext: Context
        get() = context!!
t
i like this idea too, thanks
k
Even better, this could be an
inline val
r
fun activityContext() = context!!