@ -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
}
@ -61,9 +61,7 @@ object ImageProvider {
ChapterProvider.visibleWidth,
ChapterProvider.visibleHeight
)
if (bitmap != null) {
setCache(chapterIndex, src, bitmap)
bitmap
} catch (e: Exception) {
null
@ -52,7 +52,7 @@ class HandleFileContract :
var title: String? = null,
var allowExtensions: Array<String> = arrayOf(),
var otherActions: ArrayList<SelectItem<Int>>? = null,
var fileData: Triple<String, ByteArray, String>? = null
var fileData: Triple<String, ByteArray, String>? = null,