diff --git a/app/src/main/java/io/legado/app/ui/book/read/Help.kt b/app/src/main/java/io/legado/app/ui/book/read/Help.kt index 939377cb1..a24d6e180 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/Help.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/Help.kt @@ -20,6 +20,9 @@ object Help { private const val NAVIGATION = "navigationBarBackground" + /** + * 更新状态栏,导航栏 + */ fun upSystemUiVisibility(activity: Activity, toolBarHide: Boolean = true) { var flag = (View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or View.SYSTEM_UI_FLAG_LAYOUT_STABLE @@ -70,6 +73,9 @@ object Help { return false } + /** + * 保持亮屏 + */ fun keepScreenOn(window: Window, on: Boolean) { if (on) { window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON)