From e06b6b4bfdbdab05b8f5de6dd3c41afc49eff2b5 Mon Sep 17 00:00:00 2001 From: kunfei Date: Sat, 14 Sep 2019 17:35:46 +0800 Subject: [PATCH] up --- app/src/main/java/io/legado/app/lib/theme/ATH.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/io/legado/app/lib/theme/ATH.kt b/app/src/main/java/io/legado/app/lib/theme/ATH.kt index 0fafab3b3..c195fe364 100644 --- a/app/src/main/java/io/legado/app/lib/theme/ATH.kt +++ b/app/src/main/java/io/legado/app/lib/theme/ATH.kt @@ -51,8 +51,12 @@ object ATH { isTransparentStatusBar: Boolean, fullScreen: Boolean ) { - if (fullScreen && isTransparentStatusBar) { - activity.window.statusBarColor = Color.TRANSPARENT + if (fullScreen) { + if (isTransparentStatusBar) { + activity.window.statusBarColor = Color.TRANSPARENT + } else { + activity.window.statusBarColor = activity.getCompatColor(R.color.status_bar_bag) + } } else { activity.window.statusBarColor = color }