This commit is contained in:
Horis 2024-09-20 15:20:26 +08:00
parent f6f5d1d46e
commit 7dba21affc

View File

@ -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()