pull/34/head
kunfei 5 years ago
parent 2f708dc469
commit e06b6b4bfd
  1. 8
      app/src/main/java/io/legado/app/lib/theme/ATH.kt

@ -51,8 +51,12 @@ object ATH {
isTransparentStatusBar: Boolean, isTransparentStatusBar: Boolean,
fullScreen: Boolean fullScreen: Boolean
) { ) {
if (fullScreen && isTransparentStatusBar) { if (fullScreen) {
activity.window.statusBarColor = Color.TRANSPARENT if (isTransparentStatusBar) {
activity.window.statusBarColor = Color.TRANSPARENT
} else {
activity.window.statusBarColor = activity.getCompatColor(R.color.status_bar_bag)
}
} else { } else {
activity.window.statusBarColor = color activity.window.statusBarColor = color
} }

Loading…
Cancel
Save