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

@ -51,8 +51,12 @@ object ATH {
isTransparentStatusBar: Boolean,
fullScreen: Boolean
) {
if (fullScreen && isTransparentStatusBar) {
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
}

Loading…
Cancel
Save