diff options
author | Allan Wang <me@allanwang.ca> | 2019-03-31 22:44:06 -0400 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2019-03-31 22:44:06 -0400 |
commit | a49021c096f18cfef2fa54b2369ed044341187c5 (patch) | |
tree | eba7d5909732379837dd2b76567145e31bcfece6 /app/src/main/kotlin/com/pitchedapps/frost/glide | |
parent | a85b52302d1328798c7d844ff68117c49586873d (diff) | |
download | frost-a49021c096f18cfef2fa54b2369ed044341187c5.tar.gz frost-a49021c096f18cfef2fa54b2369ed044341187c5.tar.bz2 frost-a49021c096f18cfef2fa54b2369ed044341187c5.zip |
Remove round icon settings
Diffstat (limited to 'app/src/main/kotlin/com/pitchedapps/frost/glide')
-rw-r--r-- | app/src/main/kotlin/com/pitchedapps/frost/glide/RoundCornerTransformation.kt | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/kotlin/com/pitchedapps/frost/glide/RoundCornerTransformation.kt b/app/src/main/kotlin/com/pitchedapps/frost/glide/RoundCornerTransformation.kt index 564224ea..b63c5588 100644 --- a/app/src/main/kotlin/com/pitchedapps/frost/glide/RoundCornerTransformation.kt +++ b/app/src/main/kotlin/com/pitchedapps/frost/glide/RoundCornerTransformation.kt @@ -33,7 +33,7 @@ import java.security.MessageDigest class RoundCornerTransformation : BitmapTransformation() { override fun updateDiskCacheKey(messageDigest: MessageDigest) { - messageDigest.update("FrostRoundCornerTransform-${Prefs.showRoundedIcons}".toByteArray()) + messageDigest.update("FrostRoundCornerTransform".toByteArray()) } override fun transform(pool: BitmapPool, toTransform: Bitmap, outWidth: Int, outHeight: Int): Bitmap { @@ -44,8 +44,7 @@ class RoundCornerTransformation : BitmapTransformation() { val bitmap = pool.get(width, height, Bitmap.Config.ARGB_8888) bitmap.setHasAlpha(true) - val radius = Math.min(width, height).toFloat() / - (if (Prefs.showRoundedIcons) 2f else 10f) + val radius = Math.min(width, height) * 0.5f val canvas = Canvas(bitmap) val paint = Paint() |