mirror of
https://github.com/gedoor/legado.git
synced 2024-09-03 09:55:00 +08:00
优化
This commit is contained in:
parent
a401d630da
commit
ad2bdef38f
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user