diff --git a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt index 25979afc6..10b8e2ac1 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/ReadBookActivity.kt @@ -295,10 +295,13 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_rea } private fun upBar() { - var flag = View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + var flag = (View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + or View.SYSTEM_UI_FLAG_LAYOUT_STABLE + or View.SYSTEM_UI_FLAG_IMMERSIVE + or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) if (getPrefBoolean("hideNavigationBar")) { flag = - flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION or View.SYSTEM_UI_FLAG_IMMERSIVE + flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION } if (!read_menu.isVisible) { if (getPrefBoolean("hideStatusBar")) {