diff --git a/app/src/main/java/io/legado/app/help/ThemeConfig.kt b/app/src/main/java/io/legado/app/help/ThemeConfig.kt index 819284723..482c91df6 100644 --- a/app/src/main/java/io/legado/app/help/ThemeConfig.kt +++ b/app/src/main/java/io/legado/app/help/ThemeConfig.kt @@ -59,7 +59,6 @@ object ThemeConfig { if (bgCfg.first.isNullOrBlank()) return null val bgImage = BitmapUtils .decodeBitmap(bgCfg.first!!, metrics.widthPixels, metrics.heightPixels) - ?: return null if (bgCfg.second == 0) { return bgImage } diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt index 6ccbb62ef..386a37dbb 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt @@ -61,9 +61,7 @@ object ImageProvider { ChapterProvider.visibleWidth, ChapterProvider.visibleHeight ) - if (bitmap != null) { - setCache(chapterIndex, src, bitmap) - } + setCache(chapterIndex, src, bitmap) bitmap } catch (e: Exception) { null diff --git a/app/src/main/java/io/legado/app/ui/document/HandleFileContract.kt b/app/src/main/java/io/legado/app/ui/document/HandleFileContract.kt index fb18b5699..402d9ed63 100644 --- a/app/src/main/java/io/legado/app/ui/document/HandleFileContract.kt +++ b/app/src/main/java/io/legado/app/ui/document/HandleFileContract.kt @@ -52,7 +52,7 @@ class HandleFileContract : var title: String? = null, var allowExtensions: Array = arrayOf(), var otherActions: ArrayList>? = null, - var fileData: Triple? = null + var fileData: Triple? = null, ) } \ No newline at end of file