e-ink模式不再固定背景

pull/346/head
gedoor 4 years ago
parent 95e7ce3479
commit 12ee46ec5c
  1. 5
      app/src/main/java/io/legado/app/help/ReadBookConfig.kt

@ -77,10 +77,6 @@ object ReadBookConfig {
val dm = resources.displayMetrics
val width = dm.widthPixels
val height = dm.heightPixels
if (AppConfig.isEInkMode && !AppConfig.isNightTheme) {
bg = ColorDrawable(Color.WHITE)
bgMeanColor = Color.WHITE
} else {
bg = durConfig.bgDrawable(width, height).apply {
if (this is BitmapDrawable) {
bgMeanColor = BitmapUtils.getMeanColor(bitmap)
@ -88,7 +84,6 @@ object ReadBookConfig {
bgMeanColor = color
}
}
}
isScroll = pageAnim == 3
}

Loading…
Cancel
Save