mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-06-01 23:45:28 +00:00
8 lines
258 B
Kotlin
8 lines
258 B
Kotlin
package dev.inmo.micro_utils.common
|
|
|
|
import android.app.Activity
|
|
import android.view.View
|
|
|
|
val Activity.rootView: View?
|
|
get() = findViewById<View?>(android.R.id.content) ?.rootView ?: window.decorView.findViewById<View?>(android.R.id.content) ?.rootView
|