pull/32/head
kunfei 5 years ago
parent e42dc58656
commit 97718d2718
  1. 3
      app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt

@ -287,7 +287,8 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_rea
private fun upBar() {
var flag = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN
if (getPrefBoolean("hideNavigationBar")) {
flag = flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION
flag =
flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_IMMERSIVE
}
if (!read_menu.isVisible) {
if (getPrefBoolean("hideStatusBar")) {

Loading…
Cancel
Save