Satyam G
07/05/2022, 12:54 PMgildor
07/05/2022, 1:53 PMSatyam G
07/05/2022, 1:56 PMgildor
07/05/2022, 1:59 PMNicolas B
07/05/2022, 2:02 PMprivate fun getContextFromComponent(): Context? {
return when (val componentCallbacks = componentCallbacksWeakReference.get()) {
is Fragment -> {
componentCallbacks.context
}
is FragmentActivity -> componentCallbacks
else -> null
}
}
gildor
07/05/2022, 2:02 PMSatyam G
07/05/2022, 2:07 PMgildor
07/05/2022, 3:08 PMSatyam G
07/05/2022, 3:10 PM