From 9540016c917630265d2dc77a23379f267d695cb0 Mon Sep 17 00:00:00 2001 From: kunfei Date: Fri, 15 Apr 2022 08:09:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/book/read/page/provider/ImageProvider.kt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt index e11dbdccc..e000fa311 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt @@ -44,11 +44,9 @@ object ImageProvider { oldBitmap: Bitmap, newBitmap: Bitmap? ) { - if (evicted) { - oldBitmap.recycle() - putDebug("ImageProvider: trigger bitmap recycle. URI: $key") - putDebug("ImageProvider : cacheUsage ${size()}bytes / ${maxSize()}bytes") - } + oldBitmap.recycle() + putDebug("ImageProvider: trigger bitmap recycle. URI: $key") + putDebug("ImageProvider : cacheUsage ${size()}bytes / ${maxSize()}bytes") } } @@ -90,7 +88,7 @@ object ImageProvider { // inJustDecodeBounds如果设置为true,仅仅返回图片实际的宽和高,宽和高是赋值给opts.outWidth,opts.outHeight; op.inJustDecodeBounds = true BitmapFactory.decodeFile(file.absolutePath, op) - if (op.outWidth < 1 && op.outHeight < 1) { + if (op.outWidth <= 0 && op.outHeight <= 0) { return Size(errorBitmap.width, errorBitmap.height) } return Size(op.outWidth, op.outHeight) @@ -116,7 +114,10 @@ object ImageProvider { bitmap }.onFailure { Coroutine.async { - putDebug("ImageProvider: decode bitmap failed. path: ${vFile.absolutePath}\n$it", it) + 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() From 13b8b08d842fa8e3aa6ac604c9fffc57731c1335 Mon Sep 17 00:00:00 2001 From: gedoor Date: Fri, 15 Apr 2022 00:16:55 +0000 Subject: [PATCH 2/2] Bump cronet from 100.0.4896.88 to 100.0.4896.127 - Changes in the [Git log](https://chromium.googlesource.com/chromium/src/+log/100.0.4896.88..100.0.4896.127) --- app/cronetlib/cronet_api.jar | Bin 69333 -> 69335 bytes app/cronetlib/cronet_impl_common_java.jar | Bin 97276 -> 97278 bytes app/src/main/assets/cronet.json | 2 +- app/src/main/assets/updateLog.md | 1 + gradle.properties | 2 +- 5 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/cronetlib/cronet_api.jar b/app/cronetlib/cronet_api.jar index af1fe5c368201280853af8d92cfbf32cd8a4bcd2..5898e280d335c5cf52ee5885d6155c2863480fea 100644 GIT binary patch delta 910 zcmY+?Ur19?90&0GJ6pSRyPJRRST?PUAVqTCxlK1x+gpS$76kT(bh-^mu%$1Ch(idA z9x6}k_YlK@VWAcqm7pl@B?#%ydWar`Sdcv^Nup8`R_A!zqWg9}-}C#O-#z!fk7+-| zw8hO$8m&c8pF@>P&u?x=w1N=P($=lLR3V0_4|K`nJ205!fn=Dk`y9$)`q*MKP0NP<&vNrGG04}$ss(?FnOh4Rx^_FvP04U!nwz-hAH!b6!hpD&Nb!Aghy1=8Qk6dpjo zKbs!p^H}kbmK`9^(BU}V+f z=`0k})wBhl7+Lkql8UJX`JMy{4533}*U-1Da`?NECYDW@kl5a)l^l-L>yemP(~oOe zE5sHKr#5mxZ*7=y&crHDZmD>?!9XKhyI-S{^#4#X^Q#1dW>z}&Q-yD<`8Z<+t8V)@ H|6%?B-~Ax+ delta 955 zcmY+CZAep57{~89yWPFr&AYjl4lR4NR=P9Y)<$9b5Loy@zf~CI+-5_pe1S?N^HXAh z1xI@z7#i8TX;GjkrVvy}Sbc~-RA5;jv{EyqAi~bMTg&dJ`~Ur)|8t(_p8Gm3zKV+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=d%Q-%@9Ua=% zU9DMRB0R`HLx_1jxY!78JcxpGqp@`d?qy4&=o5XiQXBFqO4vcX#0TV>ECfofHWNUElVWK|6fXtJoOvNxth;{N_vpFS|;9n$*LxZf-lPL@le61sbq z_#H$fl7j?DF_5hPngJ1p*~gBY`zvj4SK1)2AoFxm+>Szo_O!FIRySMg$i?d;Akttb zTeKJA(g@Vj_czTqTN}#5rYKy%5*>2c+q30F|Z2pdLo}8SQkib#{+G)?6=_+SSa{{g!JZ*EC zZLU|b-q!-UMtR#8>pYgwJqk|tX*_(~>>tZ~?@y(3!X$)e@` z8Uuq4ADJdJ#-V{$5?q{u!pFT(gn!0)g%+C$N-*pMCqA>mIc%Qbc-C&gJ9e;RVv-xS zC%{c}1dHaFgaB?7wy_a#e8T{BeZSJ_`loaAFC-D1868fp9%j8vPbU{XXnYf&UB5>h{Bq$lH IgTUAN5A>D$UH||9 diff --git a/app/src/main/assets/cronet.json b/app/src/main/assets/cronet.json index e720b0441..a850c4c64 100644 --- a/app/src/main/assets/cronet.json +++ b/app/src/main/assets/cronet.json @@ -1 +1 @@ -{"x86_64":"7d572f0d9b1097018e3d190ef4c0b32c","armeabi-v7a":"3a7375fb6d587b6b583ee017705978d8","arm64-v8a":"e8d2e9daca3a7095c4f045e6c84b9988","x86":"48864ce84335a1783aaa81d2ab09c8cd","version":"100.0.4896.88"} \ No newline at end of file +{"x86_64":"c81b8f347139d480e02e039ee54ded2c","armeabi-v7a":"376f6fe95055a4c3e58d6ba5a775295e","arm64-v8a":"67d683961c2e605a0595dbea4a099070","x86":"533ebbf13b68a92ae940a8c3d176ccf2","version":"100.0.4896.127"} \ No newline at end of file diff --git a/app/src/main/assets/updateLog.md b/app/src/main/assets/updateLog.md index f35bc6e90..8d0430587 100644 --- a/app/src/main/assets/updateLog.md +++ b/app/src/main/assets/updateLog.md @@ -13,6 +13,7 @@ **2022/04/14** +* 更新cronet: 100.0.4896.127 * 修复解码正文图片报错,添加解码日志 * js文档:java.toast java.longToast * cookie保存策略更改,若登录失效请重新登录 diff --git a/gradle.properties b/gradle.properties index b603501f9..8a4de3489 100644 --- a/gradle.properties +++ b/gradle.properties @@ -23,4 +23,4 @@ kotlin.code.style=official android.enableResourceOptimizations=true #https://chromiumdash.appspot.com/releases?platform=Android -CronetVersion=100.0.4896.88 +CronetVersion=100.0.4896.127