Skip to content

Commit

Permalink
hidebottom
Browse files Browse the repository at this point in the history
  • Loading branch information
manondidi committed Jul 29, 2020
1 parent 7edfd26 commit 19536d3
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,8 @@ fun AppCompatActivity.hideBottom() {
v.systemUiVisibility = View.GONE
} else if (Build.VERSION.SDK_INT >= 19) { //for new api versions.
val decorView = window.decorView
val uiOptions = (View.SYSTEM_UI_FLAG_LAYOUT_STABLE
or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
or View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_FULLSCREEN
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY)
val uiOptions = (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY or View.SYSTEM_UI_FLAG_FULLSCREEN)
decorView.systemUiVisibility = uiOptions
}
}

0 comments on commit 19536d3

Please sign in to comment.