pull/1744/head
kunfei 3 years ago
parent 7d144920d5
commit ceda5ce9a6
  1. 2
      app/src/main/assets/defaultData/rssSources.json
  2. 4
      app/src/main/java/io/legado/app/help/glide/BlurTransformation.kt
  3. 2
      app/src/main/java/io/legado/app/model/BookCover.kt

@ -25,7 +25,7 @@
"enabled": true,
"singleUrl": true,
"sourceGroup": "legado",
"sourceIcon": "https://Cloud.miaogongzi.site/images/icon.png",
"sourceIcon": "https://cdn.jsdelivr.net/gh/mgz0227/meowcloud/icon.png",
"sourceName": "Meow云",
"sourceUrl": "https://pan.miaogongzi.net"
},

@ -1,15 +1,12 @@
package io.legado.app.help.glide
import android.annotation.TargetApi
import android.graphics.Bitmap
import android.os.Build
import androidx.annotation.IntRange
import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool
import com.bumptech.glide.load.resource.bitmap.CenterCrop
import io.legado.app.utils.stackBlur
import java.security.MessageDigest
/**
* 模糊
* @radius: 0..25
@ -18,7 +15,6 @@ class BlurTransformation(
@IntRange(from = 0, to = 25) private val radius: Int
) : CenterCrop() {
@TargetApi(Build.VERSION_CODES.JELLY_BEAN_MR1)
override fun transform(
pool: BitmapPool,
toTransform: Bitmap,

@ -93,9 +93,9 @@ object BookCover {
val options = RequestOptions().set(OkHttpModelLoader.loadOnlyWifiOption, loadOnlyWifi)
ImageLoader.load(context, path)
.apply(options)
.transform(BlurTransformation(25))
.transition(DrawableTransitionOptions.withCrossFade(1500))
.thumbnail(loadBlur)
.apply(RequestOptions.bitmapTransform(BlurTransformation(25)))
.centerCrop()
}
}

Loading…
Cancel
Save