From 973066795ccc4698e743617078e924801a606f73 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 24 Aug 2019 17:02:29 +0800 Subject: [PATCH] up --- .../java/io/legado/app/ui/readbook/ReadBookActivity.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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")) {