Skip to content

Commit

Permalink
hidebottom
Browse files Browse the repository at this point in the history
  • Loading branch information
manondidi committed Jul 28, 2020
1 parent 11393ae commit 7edfd26
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ 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_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_FULLSCREEN)
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)
decorView.systemUiVisibility = uiOptions
}
}

0 comments on commit 7edfd26

Please sign in to comment.