Skip to content

Instantly share code, notes, and snippets.

View untungs's full-sized avatar

Untung Suryono untungs

View GitHub Profile
@untungs
untungs / ActivityExtensions.kt
Last active September 26, 2017 06:37
Kotlin Extensions
fun Activity.drawBehindStatusBar() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_LAYOUT_STABLE or
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
}
}