Merge branch 'master' into master
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -1 +1 @@
|
|||||||
{"x86_64":"7d572f0d9b1097018e3d190ef4c0b32c","armeabi-v7a":"3a7375fb6d587b6b583ee017705978d8","arm64-v8a":"e8d2e9daca3a7095c4f045e6c84b9988","x86":"48864ce84335a1783aaa81d2ab09c8cd","version":"100.0.4896.88"}
|
{"x86_64":"c81b8f347139d480e02e039ee54ded2c","armeabi-v7a":"376f6fe95055a4c3e58d6ba5a775295e","arm64-v8a":"67d683961c2e605a0595dbea4a099070","x86":"533ebbf13b68a92ae940a8c3d176ccf2","version":"100.0.4896.127"}
|
||||||
@@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
**2022/04/14**
|
**2022/04/14**
|
||||||
|
|
||||||
|
* 更新cronet: 100.0.4896.127
|
||||||
* 修复解码正文图片报错,添加解码日志
|
* 修复解码正文图片报错,添加解码日志
|
||||||
* js文档:java.toast java.longToast
|
* js文档:java.toast java.longToast
|
||||||
* cookie保存策略更改,若登录失效请重新登录
|
* cookie保存策略更改,若登录失效请重新登录
|
||||||
|
|||||||
@@ -43,11 +43,9 @@ object ImageProvider {
|
|||||||
oldBitmap: Bitmap,
|
oldBitmap: Bitmap,
|
||||||
newBitmap: Bitmap?
|
newBitmap: Bitmap?
|
||||||
) {
|
) {
|
||||||
if (evicted) {
|
oldBitmap.recycle()
|
||||||
oldBitmap.recycle()
|
putDebug("ImageProvider: trigger bitmap recycle. URI: $key")
|
||||||
putDebug("ImageProvider: trigger bitmap recycle. URI: $key")
|
putDebug("ImageProvider : cacheUsage ${size()}bytes / ${maxSize()}bytes")
|
||||||
putDebug("ImageProvider : cacheUsage ${size()}bytes / ${maxSize()}bytes")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -117,6 +115,17 @@ object ImageProvider {
|
|||||||
?: throw NoStackTraceException("解析图片失败")
|
?: throw NoStackTraceException("解析图片失败")
|
||||||
bitmapLruCache.put(src, bitmap)
|
bitmapLruCache.put(src, bitmap)
|
||||||
bitmap
|
bitmap
|
||||||
|
}.onFailure {
|
||||||
|
Coroutine.async {
|
||||||
|
putDebug(
|
||||||
|
"ImageProvider: decode bitmap failed. path: ${vFile.absolutePath}\n$it",
|
||||||
|
it
|
||||||
|
)
|
||||||
|
if (FileUtils.readText(vFile.absolutePath).isXml()) {
|
||||||
|
putDebug("ImageProvider: delete xml file. path: ${vFile.absolutePath}")
|
||||||
|
vFile.delete()
|
||||||
|
}
|
||||||
|
}
|
||||||
}.getOrDefault(errorBitmap)
|
}.getOrDefault(errorBitmap)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -23,4 +23,4 @@ kotlin.code.style=official
|
|||||||
android.enableResourceOptimizations=true
|
android.enableResourceOptimizations=true
|
||||||
|
|
||||||
#https://chromiumdash.appspot.com/releases?platform=Android
|
#https://chromiumdash.appspot.com/releases?platform=Android
|
||||||
CronetVersion=100.0.4896.88
|
CronetVersion=100.0.4896.127
|
||||||
|
|||||||
Reference in New Issue
Block a user