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