删除多余的缓存
This commit is contained in:
@@ -768,15 +768,7 @@ interface JsExtensions : JsEncodeUtils {
|
|||||||
var qTTF = CacheManager.getQueryTTF(key)
|
var qTTF = CacheManager.getQueryTTF(key)
|
||||||
if (qTTF != null) return qTTF
|
if (qTTF != null) return qTTF
|
||||||
val font: ByteArray? = when {
|
val font: ByteArray? = when {
|
||||||
str.isAbsUrl() -> {
|
str.isAbsUrl() -> AnalyzeUrl(str, source = getSource()).getByteArray()
|
||||||
var x = CacheManager.getByteArray(key)
|
|
||||||
if (x == null) {
|
|
||||||
x = AnalyzeUrl(str, source = getSource()).getByteArray()
|
|
||||||
CacheManager.put(key, x)
|
|
||||||
}
|
|
||||||
x
|
|
||||||
}
|
|
||||||
|
|
||||||
str.isContentScheme() -> Uri.parse(str).readBytes(appCtx)
|
str.isContentScheme() -> Uri.parse(str).readBytes(appCtx)
|
||||||
str.startsWith("/storage") -> File(str).readBytes()
|
str.startsWith("/storage") -> File(str).readBytes()
|
||||||
else -> base64DecodeToByteArray(str)
|
else -> base64DecodeToByteArray(str)
|
||||||
|
|||||||
Reference in New Issue
Block a user