修复图片加载错误时卡顿的bug

pull/1905/head^2
kunfei 3 years ago
parent 74e91c86d1
commit ba30225815
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/page/provider/ImageProvider.kt

@ -46,6 +46,7 @@ object ImageProvider {
oldBitmap: Bitmap, oldBitmap: Bitmap,
newBitmap: Bitmap? newBitmap: Bitmap?
) { ) {
//错误图片不能释放,占位用,防止一直重复获取图片
if (oldBitmap != errorBitmap) { if (oldBitmap != errorBitmap) {
oldBitmap.recycle() oldBitmap.recycle()
putDebug("ImageProvider: trigger bitmap recycle. URI: $key") putDebug("ImageProvider: trigger bitmap recycle. URI: $key")

Loading…
Cancel
Save