I\'m not a designer but when i got this project i can`t open specifically some screens, i think that they are screens and we only reuse some of the layouts have been created. An
Recursive solution in Kotlin:
fun Context.getActivity(): Activity? { return when (this) { is Activity -> this is ContextWrapper -> this.baseContext.getActivity() else -> null } }
Checked with case of using View.getContext().
View.getContext()