From 0376267e27aee5dbe157107347e3ad0daa9c37f9 Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 26 Aug 2019 08:27:04 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/ui/readbook/Help.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/readbook/Help.kt b/app/src/main/java/io/legado/app/ui/readbook/Help.kt index 1eafb1902..c6226d3a8 100644 --- a/app/src/main/java/io/legado/app/ui/readbook/Help.kt +++ b/app/src/main/java/io/legado/app/ui/readbook/Help.kt @@ -34,8 +34,11 @@ object Help { window.decorView.systemUiVisibility = flag } - //该方法需要在View完全被绘制出来之后调用,否则判断不了 - //在比如 onWindowFocusChanged()方法中可以得到正确的结果 + /** + * 返回NavigationBar是否存在 + * 该方法需要在View完全被绘制出来之后调用,否则判断不了 + * 在比如 onWindowFocusChanged()方法中可以得到正确的结果 + */ fun isNavigationBarExist(activity: Activity?): Boolean { activity?.let { val vp = it.window.decorView as? ViewGroup