mirror of
https://github.com/gedoor/legado.git
synced 2024-07-06 23:47:49 +08:00
删除多余的缓存
This commit is contained in:
parent
6cc3d3a085
commit
1e5ea697ad
@ -768,15 +768,7 @@ interface JsExtensions : JsEncodeUtils {
|
||||
var qTTF = CacheManager.getQueryTTF(key)
|
||||
if (qTTF != null) return qTTF
|
||||
val font: ByteArray? = when {
|
||||
str.isAbsUrl() -> {
|
||||
var x = CacheManager.getByteArray(key)
|
||||
if (x == null) {
|
||||
x = AnalyzeUrl(str, source = getSource()).getByteArray()
|
||||
CacheManager.put(key, x)
|
||||
}
|
||||
x
|
||||
}
|
||||
|
||||
str.isAbsUrl() -> AnalyzeUrl(str, source = getSource()).getByteArray()
|
||||
str.isContentScheme() -> Uri.parse(str).readBytes(appCtx)
|
||||
str.startsWith("/storage") -> File(str).readBytes()
|
||||
else -> base64DecodeToByteArray(str)
|
||||
|
Loading…
Reference in New Issue
Block a user