mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
f6f5d1d46e
commit
7dba21affc
@ -28,6 +28,7 @@ import kotlinx.coroutines.delay
|
||||
import kotlinx.coroutines.runBlocking
|
||||
import splitties.init.appCtx
|
||||
import java.io.File
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
object BookController {
|
||||
|
||||
@ -69,7 +70,7 @@ object BookController {
|
||||
.centerCrop()
|
||||
.submit()
|
||||
return try {
|
||||
returnData.setData(ftBitmap.get())
|
||||
returnData.setData(ftBitmap.get(3, TimeUnit.SECONDS))
|
||||
} catch (e: Exception) {
|
||||
val defaultBitmap = Glide.with(appCtx)
|
||||
.asBitmap()
|
||||
|
Loading…
Reference in New Issue
Block a user