Skip to content

Commit

Permalink
隐藏导航栏不可恢复
Browse files Browse the repository at this point in the history
  • Loading branch information
manondidi committed Jul 28, 2020
1 parent 20271a9 commit 11393ae
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ 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_IMMERSIVE_STICKY or View.SYSTEM_UI_FLAG_FULLSCREEN)
val uiOptions = (View.SYSTEM_UI_FLAG_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_FULLSCREEN)
decorView.systemUiVisibility = uiOptions
}
}

0 comments on commit 11393ae

Please sign in to comment.