|
|
|
@ -13,6 +13,7 @@ import io.legado.app.utils.* |
|
|
|
|
import kotlinx.coroutines.Dispatchers.IO |
|
|
|
|
import kotlinx.coroutines.withContext |
|
|
|
|
import splitties.init.appCtx |
|
|
|
|
import timber.log.Timber |
|
|
|
|
import java.io.File |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -568,8 +569,10 @@ object ReadBookConfig { |
|
|
|
|
BitmapUtils.decodeBitmap(curBgStr(), width, height) |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} catch (e: OutOfMemoryError) { |
|
|
|
|
Timber.e(e) |
|
|
|
|
} catch (e: Exception) { |
|
|
|
|
e.printOnDebug() |
|
|
|
|
Timber.e(e) |
|
|
|
|
} |
|
|
|
|
return bgDrawable ?: ColorDrawable(appCtx.getCompatColor(R.color.background)) |
|
|
|
|
} |
|
|
|
|