This commit is contained in:
kunfei 2023-07-09 13:27:37 +08:00
parent a401d630da
commit ad2bdef38f

View File

@ -200,20 +200,4 @@ object ImageProvider {
return tmp
}
fun getServiceCover(coverUrl: String?): Bitmap {
var bitmap: Bitmap?
if (!coverUrl.isNullOrBlank()) {
bitmap = get(coverUrl)
if (bitmap != null) {
return bitmap
}
}
bitmap = get("defaultCover")
if (bitmap == null) {
bitmap = BitmapFactory.decodeResource(appCtx.resources, R.drawable.icon_read_book)!!
put("defaultCover", bitmap)
}
return bitmap
}
}