|
|
|
@ -5,6 +5,7 @@ import android.view.View |
|
|
|
|
import android.view.View.NO_ID |
|
|
|
|
import android.view.ViewGroup |
|
|
|
|
import io.legado.app.App |
|
|
|
|
import io.legado.app.constant.PreferKey |
|
|
|
|
import io.legado.app.help.ReadBookConfig |
|
|
|
|
import io.legado.app.lib.theme.ATH |
|
|
|
|
import io.legado.app.lib.theme.ThemeStore |
|
|
|
@ -21,12 +22,12 @@ object Help { |
|
|
|
|
or View.SYSTEM_UI_FLAG_LAYOUT_STABLE |
|
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE |
|
|
|
|
or View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY) |
|
|
|
|
val hideNavigationBar = App.INSTANCE.getPrefBoolean("hideNavigationBar") |
|
|
|
|
val hideNavigationBar = App.INSTANCE.getPrefBoolean(PreferKey.hideNavigationBar) |
|
|
|
|
if (hideNavigationBar) { |
|
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
|
|
|
|
} |
|
|
|
|
if (toolBarHide) { |
|
|
|
|
if (App.INSTANCE.getPrefBoolean("hideStatusBar")) { |
|
|
|
|
if (App.INSTANCE.getPrefBoolean(PreferKey.hideStatusBar)) { |
|
|
|
|
flag = flag or View.SYSTEM_UI_FLAG_FULLSCREEN |
|
|
|
|
} |
|
|
|
|
if (hideNavigationBar) { |
|
|
|
|